[jboss-user] [JBoss Microcontainer Development] - Servlet Scanner plugin
Ales Justin
do-not-reply at jboss.com
Wed Mar 24 20:32:19 EDT 2010
Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"Servlet Scanner plugin"
To view the discussion, visit: http://community.jboss.org/message/533861#533861
--------------------------------------------------------------
> getAnnotatedClasses is for the usual EE annotations, some can be on field, method, type.
>
So, you don't care where it is? e.g. @RunAs on whole class vs. just on a method
In this case this signature will do:
/**
* Get annotated classes.
*
* @param cpEntry the classpath entry
* @param annotationToLookFor the annotation to look for
* @return set of annotated classes
*/
Set<Class<?>> getAnnotatedClasses(VirtualFile cpEntry, Class<? extends Annotation> annotationToLookFor);
Since you can do the merging/intersection/... yourself. ;-)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533861#533861]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100324/8dddaf1a/attachment.html
More information about the jboss-user
mailing list