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]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
