org.jboss.weld.environment.se
Class WeldContainer

java.lang.Object
  extended by org.jboss.weld.environment.se.WeldContainer

public class WeldContainer
extends Object

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();

Author:
Peter Royle
See Also:
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

WeldContainer

@Inject
protected WeldContainer(InstanceManager instanceManager,
                               javax.enterprise.inject.spi.BeanManager beanManager)
Method Detail

instance

public javax.enterprise.inject.Instance<Object> instance()
Provides access to all beans within the application. For example: Foo foo = weld.instance().select(Foo.class).get();


event

public javax.enterprise.event.Event<Object> event()
Provides access to all events within the application. For example: weld.event().select(Bar.class).fire(new Bar());


getBeanManager

public javax.enterprise.inject.spi.BeanManager getBeanManager()
Provides direct access to the BeanManager.



Copyright © 2013 Seam Framework. All Rights Reserved.