| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>Registration</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| |
| <link rel="shortcut icon" href="/img/jakarta-favicon.ico"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Registration"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/Parameters.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/ScannedClasses.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?jakarta/enterprise/inject/build/compatible/spi/Registration.html" target="_top">Frames</a></li> |
| <li><a href="Registration.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Field | </li> |
| <li><a href="#annotation.type.required.element.summary">Required</a> | </li> |
| <li>Optional</li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#annotation.type.element.detail">Element</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">jakarta.enterprise.inject.build.compatible.spi</div> |
| <h2 title="Annotation Type Registration" class="title">Annotation Type Registration</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>@Target(value=METHOD) |
| @Retention(value=RUNTIME) |
| public @interface <span class="memberNameLabel">Registration</span></pre> |
| <div class="block">3rd phase of <a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/BuildCompatibleExtension.html" title="interface in jakarta.enterprise.inject.build.compatible.spi">build compatible extension</a> execution. |
| Allows observing registered beans and observers. |
| <p> |
| This phase is executed twice. |
| For non-synthetic beans and observers, this phase is executed <em>before</em> <a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/Synthesis.html" title="annotation in jakarta.enterprise.inject.build.compatible.spi">synthesis</a>. |
| For synthetic beans and observers, this phase is executed <em>after</em> synthesis. |
| <p> |
| In the following text, the term <em>expected types</em> denotes the set of types defined by |
| the <a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/Registration.html#types--"><code>types</code></a> member of the <code>@Registration</code> annotation. |
| <p> |
| Methods annotated <code>@Registration</code> must declare exactly one parameter of one of these types: |
| <ul> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/BeanInfo.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><code>BeanInfo</code></a></li> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/InterceptorInfo.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><code>InterceptorInfo</code></a></li> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/ObserverInfo.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><code>ObserverInfo</code></a></li> |
| </ul> |
| If a <code>@Registration</code> method has a parameter of type <code>BeanInfo</code>, the method is called once |
| for each bean whose set of bean types contains at least one <em>expected type</em>. |
| <p> |
| If the <code>@Registration</code> method has a parameter of type <code>InterceptorInfo</code>, the method is called once |
| for each interceptor whose set of bean types contains at least one <em>expected type</em>. |
| <p> |
| If the <code>@Registration</code> method has a parameter of type <code>ObserverInfo</code>, the method is called once |
| for each observer whose observed event type is assignable to at least one <em>expected type</em>. |
| <p> |
| Note that interceptors are beans, and <code>InterceptorInfo</code> is a subtype of <code>BeanInfo</code>, so if the method |
| has a parameter of type <code>BeanInfo</code>, it will be called for interceptors as well. |
| <p> |
| If the <code>@Registration</code> method doesn't declare any parameter of one of these types, |
| or if it declares more than one, the container treats it as a definition error. |
| <p> |
| Additionally, methods annotated <code>@Registration</code> may declare parameters of these types: |
| <ul> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/Messages.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><code>Messages</code></a></li> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/Types.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><code>Types</code></a></li> |
| </ul></div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>4.0</dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== ANNOTATION TYPE REQUIRED MEMBER SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="annotation.type.required.element.summary"> |
| <!-- --> |
| </a> |
| <h3>Required Element Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Required Element Summary table, listing required elements, and an explanation"> |
| <caption><span>Required Elements</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Required Element and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.lang.Class<?>[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/Registration.html#types--">types</a></span></code> |
| <div class="block">Defines the set of <em>expected types</em>.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="annotation.type.element.detail"> |
| <!-- --> |
| </a> |
| <h3>Element Detail</h3> |
| <a name="types--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>types</h4> |
| <pre>public abstract java.lang.Class<?>[] types</pre> |
| <div class="block">Defines the set of <em>expected types</em>.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the set of <em>expected types</em></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/Parameters.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../jakarta/enterprise/inject/build/compatible/spi/ScannedClasses.html" title="interface in jakarta.enterprise.inject.build.compatible.spi"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?jakarta/enterprise/inject/build/compatible/spi/Registration.html" target="_top">Frames</a></li> |
| <li><a href="Registration.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Field | </li> |
| <li><a href="#annotation.type.required.element.summary">Required</a> | </li> |
| <li>Optional</li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#annotation.type.element.detail">Element</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |