public interface SeContainer extends Instance<Object>, AutoCloseableProvides access to the current container in Java SE.
Instanceand therefore might be used to perform programmatic lookup. If no qualifier is passed to
@Defaultqualifier is assumed.
CDI Lite implementations are not required to provide support for CDI in Java SE.
- Antoine Sabot-Durand, John D. Ament, Graeme Rocher
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description
close()Shuts down this SeContainer instance when it is no longer in scope.
getBeanContainer()Get the CDI
BeanContainerfor this container.
getBeanManager()Get the CDI BeanManager for this container
isRunning()Check if the container is running or was shut down
Methods inherited from interface jakarta.enterprise.inject.Instance
destroy, getHandle, handles, handlesStream, isAmbiguous, isResolvable, isUnsatisfied, select, select, select, stream
Shuts down this SeContainer instance when it is no longer in scope. Implemented from
boolean isRunning()Check if the container is running or was shut down
- true if called before container shutdown
BeanManager getBeanManager()Get the CDI BeanManager for this container
- the BeanManager
IllegalStateException- if called when the container is already shutdown