[jboss-cvs] JBossAS SVN: r90012 - in projects/microcontainer/mcdocs/trunk/userguide: src/main/docbook and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 9 18:26:41 EDT 2009


Author: kabir.khan at jboss.com
Date: 2009-06-09 18:26:40 -0400 (Tue, 09 Jun 2009)
New Revision: 90012

Modified:
   projects/microcontainer/mcdocs/trunk/userguide/
   projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml
Log:
Add annotated incallback example


Property changes on: projects/microcontainer/mcdocs/trunk/userguide
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml	2009-06-09 22:15:50 UTC (rev 90011)
+++ projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml	2009-06-09 22:26:40 UTC (rev 90012)
@@ -1096,7 +1096,7 @@
           <para>We are not able to define classloaders using annotations for the simple reason that in order to read any annotations we must first load the class. Once the class is loaded we cannot change its classloader so a classloader annotation would be useless.</para>
         </note>
         <para>The microcontainer annotations live in the <code>org.jboss.beans.metadata.api.annotations</code> package and to use them you need Java 1.5 or above.</para>
-        <para>If you are using Java 1.4 or below then JBoss Microcontainer allows you to define a subset of the annotations in the XML deployment descriptor.  The caveat is that these apply to bean instances instead of bean classes. As with normal annotations you are free to add as many as necessary at a single point. However you must always specify the fully-qualified class name since there is no way to &apos;import&apos; packages in XML. Currently you can place annotations inside the following elements:</para>
+        <para>Further JBoss Microcontainer allows you to define a subset of the annotations in the XML deployment descriptor.  The caveat is that these apply to bean instances instead of bean classes. As with normal annotations you are free to add as many as necessary at a single point. However you must always specify the fully-qualified class name since there is no way to &apos;import&apos; packages in XML. Currently you can place annotations inside the following elements:</para>
         <itemizedlist>
           <listitem>
             <para>&lt;deployment&gt; -all beans in the deployment inherit this annotation </para>
@@ -1137,7 +1137,11 @@
           </listitem>
           <listitem>
             <para>&lt;incallback&gt;, &lt;uncallback&gt;</para>
-            <programlisting role="XML"/>
+            <programlisting role="XML">&lt;bean name=&quot;example&quot; class=&quot;org.jboss.test.Example&quot;&gt;
+    &lt;incallback method="addSubject"&gt;
+        &lt;annotation&gt;@org.jboss.test.TestAnnotation&lt;/annotation&gt;
+    &lt;/incallback&gt;
+&lt;/bean&gt;</programlisting>
           </listitem>
           <listitem>
             <para>&lt;value&gt;</para>




More information about the jboss-cvs-commits mailing list