Author: buildbot
Date: Sat Jul 23 07:08:33 2011
New Revision: 793195

Log:
Staging update by buildbot

Modified:
    websites/staging/openejb/trunk/content/xbean-finder.html

Modified: websites/staging/openejb/trunk/content/xbean-finder.html
==============================================================================
--- websites/staging/openejb/trunk/content/xbean-finder.html (original)
+++ websites/staging/openejb/trunk/content/xbean-finder.html Sat Jul 23 
07:08:33 2011
@@ -371,6 +371,79 @@ that gives you Properties objects back. 
 properties files and pass the properties right into the ObjectRecipe and more 
or less get a
 little do-it-yourself IoC plugin system.</p>
 
+<h1>OpenEJB/TomEE</h1>
+
+<p>Here is a grep of some of the calls made to <code>AnnotationFinder</code>.  
Most of this code is in an OpenEJB class called
+<code>AnnotationDeployer</code> whose primary job is to merge the @annotation 
and <xml> metadata into one tree.</p>
+
+<pre><code>        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
finder.findMetaAnnotatedClasses(LocalClient.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
finder.findMetaAnnotatedClasses(RemoteClient.class)) {
+        List&lt;Class&lt;?&gt;&gt; connectorClasses = 
finder.findAnnotatedClasses(Connector.class);
+        List&lt;Class&lt;?&gt;&gt; classes = 
finder.findAnnotatedClasses(ConnectionDefinitions.class);
+        classes = finder.findAnnotatedClasses(ConnectionDefinition.class);
+        classes = finder.findAnnotatedClasses(Activation.class);
+        classes = finder.findAnnotatedClasses(AdministeredObject.class);
+        classes.addAll(finder.findAnnotatedClasses(WebService.class));
+        classes.addAll(finder.findAnnotatedClasses(WebServiceProvider.class));
+        for (Annotated&lt;Class&lt;?&gt;&gt; beanClass : 
finder.findMetaAnnotatedClasses(Singleton.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; beanClass : 
finder.findMetaAnnotatedClasses(Stateless.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; beanClass : 
finder.findMetaAnnotatedClasses(Stateful.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; beanClass : 
finder.findMetaAnnotatedClasses(ManagedBean.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; beanClass : 
finder.findMetaAnnotatedClasses(MessageDriven.class)) {
+        List&lt;Class&lt;?&gt;&gt; appExceptions = 
finder.findAnnotatedClasses(ApplicationException.class);
+                List&lt;Class&lt;?&gt;&gt; list = 
finder.findAnnotatedClasses(annotation);
+            final List&lt;Annotated&lt;Class&lt;?&gt;&gt;&gt; annotatedClasses 
= sortClasses(annotationFinder.findMetaAnnotatedClasses(Interceptors.class));
+            final List&lt;Annotated&lt;Method&gt;&gt; annotatedMethods = 
sortMethods(annotationFinder.findMetaAnnotatedMethods(Interceptors.class));
+            for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(ExcludeDefaultInterceptors.class)) {
+            for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(ExcludeClassInterceptors.class)))
 {
+                        if (annotationFinder.isAnnotationPresent(Path.class) 
|| !annotationFinder.findAnnotatedMethods(Path.class).isEmpty()) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(Asynchronous.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(Asynchronous.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(RolesAllowed.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(PermitAll.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(DenyAll.class)) {
+        
scheduleMethods.addAll(annotationFinder.findMetaAnnotatedMethods(javax.ejb.Schedules.class));
+        
scheduleMethods.addAll(annotationFinder.findMetaAnnotatedMethods(javax.ejb.Schedule.class));
+            for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(PostConstruct.class))) {
+            for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(PreDestroy.class))) {
+                for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(javax.interceptor.AroundInvoke.class)))
 {
+                for (Annotated&lt;Method&gt; method : 
sortMethods((annotationFinder.findMetaAnnotatedMethods(javax.interceptor.AroundTimeout.class))))
 {
+                List&lt;Annotated&lt;Method&gt;&gt; timeoutMethods = 
sortMethods(annotationFinder.findMetaAnnotatedMethods(javax.ejb.Timeout.class));
+                for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(AfterBegin.class))) {
+                for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(BeforeCompletion.class))) 
{
+                for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(AfterCompletion.class))) {
+                for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(PostActivate.class))) {
+                for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(PrePassivate.class))) {
+            for (Annotated&lt;Method&gt; method : 
sortMethods(annotationFinder.findMetaAnnotatedMethods(Init.class))) {
+            List&lt;Annotated&lt;Method&gt;&gt; removeMethods = 
sortMethods(annotationFinder.findMetaAnnotatedMethods(Remove.class));
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(EJBs.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(EJB.class)) {
+        for (Annotated&lt;Field&gt; field : 
annotationFinder.findMetaAnnotatedFields(EJB.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(EJB.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(Resources.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(Resource.class)) {
+        for (Annotated&lt;Field&gt; field : 
annotationFinder.findMetaAnnotatedFields(Resource.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(Resource.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(WebServiceRefs.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(WebServiceRef.class)) {
+        for (Annotated&lt;Field&gt; field : 
annotationFinder.findMetaAnnotatedFields(WebServiceRef.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(WebServiceRef.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(PersistenceUnits.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(PersistenceUnit.class)) {
+        for (Annotated&lt;Field&gt; field : 
annotationFinder.findMetaAnnotatedFields(PersistenceUnit.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(PersistenceUnit.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(PersistenceContexts.class)) {
+        for (Annotated&lt;Class&lt;?&gt;&gt; clazz : 
annotationFinder.findMetaAnnotatedClasses(PersistenceContext.class)) {
+        for (Annotated&lt;Field&gt; field : 
annotationFinder.findMetaAnnotatedFields(PersistenceContext.class)) {
+        for (Annotated&lt;Method&gt; method : 
annotationFinder.findMetaAnnotatedMethods(PersistenceContext.class)) {
+        int ann = 
annotationFinder.findAnnotatedClasses(handler.getAnnotationClass()).size();
+        ann += 
annotationFinder.findAnnotatedMethods(handler.getAnnotationClass()).size();
+        List&lt;Annotated&lt;Class&lt;?&gt;&gt;&gt; types = 
sortClasses(annotationFinder.findMetaAnnotatedClasses(annotationClass));
+        List&lt;Annotated&lt;Method&gt;&gt; methods = 
annotationFinder.findMetaAnnotatedMethods(annotationClass);
+    List&lt;Class&lt;?&gt;&gt; annotatedClasses = 
finder.findAnnotatedClasses(Path.class);
+    methods.addAll(finder.findAnnotatedMethods(Path.class));
+</code></pre>
+
             </DIV>
           </P>
         </TD>


Reply via email to