When creating the BasicAnnotationsItem for the cache from the CachingMDC I need a
reference to a MetaDataLoader which is used to determine if it is cachable:
| public BasicAnnotationItem(MetaDataLoader loader, T annotation)
| {
| super(loader, annotation.annotationType().getName(), annotation);
| }
|
| public T getAnnotation()
| {
| return getValue();
| }
|
CachingMDC does not implement MetaDataLoader so I can't pass in 'this'. My
current ideas are either:
-make CachingMDC implement MDL and always return true from isCachable()
-create a MDL implementation that returns true if all the AnnotationItems are cachable,
otherwise return false.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269360#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...