public interface SeContainer extends Instance<java.lang.Object>, java.lang.AutoCloseable
SeContainer implements Instance and therefore might be used to perform programmatic lookup.
If no qualifier is passed to Instance.select(java.lang.annotation.Annotation...) method, the @Default qualifier is assumed.
CDI Lite implementations are not required to provide support for CDI in Java SE.
Instance.Handle<T>| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down this SeContainer instance when it is no longer in scope.
|
default BeanContainer |
getBeanContainer()
Get the CDI
BeanContainer for this container. |
BeanManager |
getBeanManager()
Get the CDI BeanManager for this container
|
boolean |
isRunning()
Check if the container is running or was shut down
|
destroy, getHandle, handles, handlesStream, isAmbiguous, isResolvable, isUnsatisfied, select, select, select, streamvoid close()
Shuts down this SeContainer instance when it is no longer in scope. Implemented from AutoCloseable,
close in interface java.lang.AutoCloseablejava.lang.IllegalStateException - if the container is already shutdownboolean isRunning()
BeanManager getBeanManager()
java.lang.IllegalStateException - if called when the container is already shutdowndefault BeanContainer getBeanContainer()
BeanContainer for this container.
Default implementation just forwards the call to getBeanManager().BeanContainer