[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Scoped beans deployment

adrian@jboss.org do-not-reply at jboss.com
Thu Feb 8 12:30:20 EST 2007


"alesj" wrote : 
  | What about in the case when Scope annotation doesn't have a factory determining annotation? Ok, since we are the ones that will be providing these scope annotations, we can throw an exception or should presume some default ScopeKey?

You can certainly avoid the factory for known types from the CommonLevel
once the annotation format is agreed.

If the annotation is not meta-annotated you could assume

level=annotation.getClass().getSimpleName();
qualifier=annotation.value();

But this would need to use reflection (yuck! :-).

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

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



More information about the jboss-dev-forums mailing list