public class WeldContainer extends Object
WeldContainer weld = new Weld().initialize();
Weld
Modifier | Constructor and Description |
---|---|
protected |
WeldContainer(InstanceManager instanceManager,
javax.enterprise.inject.spi.BeanManager beanManager) |
Modifier and Type | Method and Description |
---|---|
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.
|
@Inject protected WeldContainer(InstanceManager instanceManager, javax.enterprise.inject.spi.BeanManager beanManager)
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()
Copyright © 2016. All rights reserved.