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

alesj do-not-reply at jboss.com
Mon Dec 7 05:06:40 EST 2009


"kabir.khan at jboss.com" wrote : What I have so far has been committed against https://jira.jboss.org/jira/browse/JBREFLECT-82.
  | 
This was moved to MDR's JIRA. ;-)

"kabir.khan at jboss.com" wrote : 
  | I have not done anything about caching in CachingMetaDataContext or changed the SimpleCacheMetaDataContextUnitTestCase and SimpleCacheParentMetaDataContextUnitTestCase tests, which I guess work with CachingMetaDataContext?
Thinking about your cache, this really belongs here -- into CachingMDContext.
And I would impl it in the way I described it before -- full indexing.

Since actually using CachingMDC full time is a complete overhead (we only use info at deploy/install time),
you should just wrap non-caching MDR before you do your (meta) annotations check.
This way meta cache will kick in almost transparently + it will be impled at the right level.
Then adding the tests is a must. ;-)


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

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



More information about the jboss-dev-forums mailing list