Which brings me to my other question:
Is CDI suitable as a "plugin framework"?
By which I mean, for a standalone application which loads plugins from classpath.
I'd (mis)use it's lifecycle for init(), start(), stop(), destroy()...
Any link to an example of such usage is welcome.
can I get a list of beans matching given annotations, using anotations?
I mean, can I convert this
java.util.Set<Bean<?>> myBeans = getBeans(Foobar.class, annotation1, ann2, ...);
@Inject @Anno1 @Anno2 java.util.Set<Bean<?>> myBeans;
Or any plans for it?
I think you're looking for: