[jboss-cvs] Re: jboss-cvs-commits Digest, Vol 33, Issue 370
Ales Justin
ales.justin at gmail.com
Thu Mar 19 07:48:20 EDT 2009
>>> Last I looked, the AnnotationEnvironment ends up loading the classes,
>>> so it is no use to AOP. We need all the metadata before any clases
>>> are loaded
>>
>> It only loads annotations.
>> Which should be fine for AOP.
>
> https://svn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/AnnotationEnvironment.java
>
> Apart from
> boolean hasClassAnnotatedWith(String annotationName);
> all the methods seem to load up classes, e.g.
> Set<Element<Annotation, Class<?>>> classIsAnnotatedWith(String
> annotationName);
> Set<Element<Annotation, Field>> classHasFieldAnnotatedWith(String
> annotationName);
>
> So if something is annotated with the annotations, it seems to load up
> the Field, Method, Constructor & Class that has been annotated?
Where?
Not until you really need it,
that's why there is an Element class there,
which has the lazy notion.
More information about the jboss-cvs-commits
mailing list