I had something along this lines in mind
| public AnnotationsItem retrieveAnnotationsAnnotatedWith(Class<? extends
Annotation> meta)
| {
| Map<Class<?>, AnnotationsItems> index = retriveAnnotationsIndex();
| return new Commulative(this, true, index.get(meta));
| }
|
where CachingMDC does
| protected Map<Class<?>, AnnotationsItem> retriveAnnotationsIndex()
| {
| Map<Class<?>, AnnotationsItem> cached = cache.get(key);
| if (cached == null)
| {
| cached = super.retriveAnnotationsIndex();
| cache.put(key, cached);
| }
| else
| // validate, etc, ...
|
| return cached;
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269373#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...