"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...