[jboss-user] [JBoss Microcontainer Development] - Servlet Scanner plugin

Ales Justin do-not-reply at jboss.com
Wed Mar 24 14:38:02 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/533807#533807

--------------------------------------------------------------
> This would translate to something like:- public Set<Class<?>> getClasses(VirtualFile classpathItem, Set<Class<? extends Annotation>> annotationsToLookFor) (from the Hibernate plugin, assuming it looks for annotation on fields, methods and type), or return a Map<Class<? extends Annotation>>, Class<?>>
Hibernate plugin only checks for class annotations.
I would not re-use it, better writting new behavior in separate plugin.
> - public Set<Class<?>> getClasses(List<VirtualFile> classpath, Set<Class<? extends Annotation>> annotationsToLookFor, Set<Class<?>> supertypesToLookFor) (note: in case there are multiple SCIs with HandlesType, this could be less efficient than using a map to pass the annotations/types to look for, and getting a map back; of course, it is simpler too)
Can you explain this one a bit more.

Or, why mix the parameters; annotation and supertypes?
We already have the annotations method, simply adding the supertypes, and the use Set intersection to get both?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/533807#533807]

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/5bf1669c/attachment.html 


More information about the jboss-user mailing list