[jboss-dev-forums] [Design of POJO Server] - Re: Making Creators declare supported annotation types

emuckenhuber do-not-reply at jboss.com
Wed Jul 16 14:27:12 EDT 2008


Okay, so far i've added the getAnnotationTypes  and return the processed annotation(s), for each processor..

Furthmore i added:


  | public interface AnnotationContext
  | {
  |    Collection<Class<? extends Annotation>> getTypeAnnotations();
  |    Collection<Class<? extends Annotation>> getMethodAnnotations();
  |    Collection<Class<? extends Annotation>> getFieldAnnotations();
  | }
  | 

Which represents the set of annotations for each Creator...
e.g. the EjbJar30Creator would return @Statful, @Stateless and @MesageDriven as TypeAnnotation and null for Method and Field annotations. 

Any further ideas / comments ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164829#4164829

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164829



More information about the jboss-dev-forums mailing list