public class WeldContainer extends Object
WeldContainer weld = new Weld().initialize();
Weld
Modifier | Constructor and Description |
---|---|
protected |
WeldContainer(InstanceManager instanceManager,
BeanManager beanManager) |
Modifier and Type | Method and Description |
---|---|
Event<Object> |
event()
Provides access to all events within the application.
|
BeanManager |
getBeanManager()
Provides direct access to the BeanManager.
|
Instance<Object> |
instance()
Provides access to all beans within the application.
|
@Inject protected WeldContainer(InstanceManager instanceManager, BeanManager beanManager)
public Instance<Object> instance()
Foo foo = weld.instance().select(Foo.class).get();
public Event<Object> event()
weld.event().select(Bar.class).fire(new Bar());
public BeanManager getBeanManager()
Copyright © 2013 Seam Framework. All Rights Reserved.