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.
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down this SeContainer instance when it is no longer in scope.
|
BeanManager |
getBeanManager()
Get the CDI BeanManager for this container
|
boolean |
isRunning()
Check if the container is running or was shut down
|
destroy, isAmbiguous, isResolvable, isUnsatisfied, select, select, select, stream
void close()
Shuts down this SeContainer instance when it is no longer in scope. Implemented from AutoCloseable
,
close
in interface java.lang.AutoCloseable
java.lang.IllegalStateException
- if the container is already shutdownboolean isRunning()
BeanManager getBeanManager()
java.lang.IllegalStateException
- if called when the container is already shutdown