|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.environment.se.WeldContainer
public class WeldContainer
Provides convenient access to beans and events, particularly helpful when bootstrapping an application in Java SE.
An instance of this class can be obtained using the Weld class by calling:
WeldContainer weld = new Weld().initialize();
Weld
Constructor Summary | |
---|---|
protected |
WeldContainer(InstanceManager instanceManager,
javax.enterprise.inject.spi.BeanManager beanManager)
|
Method Summary | |
---|---|
javax.enterprise.event.Event<Object> |
event()
Provides access to all events within the application. |
javax.enterprise.inject.spi.BeanManager |
getBeanManager()
Provides direct access to the BeanManager. |
javax.enterprise.inject.Instance<Object> |
instance()
Provides access to all beans within the application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject protected WeldContainer(InstanceManager instanceManager, javax.enterprise.inject.spi.BeanManager beanManager)
Method Detail |
---|
public javax.enterprise.inject.Instance<Object> instance()
Foo foo = weld.instance().select(Foo.class).get();
public javax.enterprise.event.Event<Object> event()
weld.event().select(Bar.class).fire(new Bar());
public javax.enterprise.inject.spi.BeanManager getBeanManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |