[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Adding getAnnotationsAnnotatedWith() to MDR

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Dec 7 10:10:40 EST 2009


Actually, I see BasicAnnotationsItem already does 2b) so I'll go with that bypassing the loader:

  | public class CachedAnnotationsItem extends BasicAnnotationsItem
  | {
  |    public CachedAnnotationsItem(AnnotationItem<? extends Annotation>[] annotationItems)
  |    {
  |       super(null, annotationItems);
  |    }
  | 
  |    @Override
  |    public boolean isCachable()
  |    {
  |       for (AnnotationItem<? extends Annotation> item : getAnnotations())
  |       {
  |          if (item.isCachable() == false)
  |             return false;
  |       }
  |       return true;
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list