Top Description Methods
javax.enterprise.inject.se

public Interface SeContainer

extends Instance<Object>, AutoCloseable
Imports
javax.enterprise.inject.Instance, javax.enterprise.inject.spi.BeanManager

Provides access to the current container in Java SE.

SeContainer implements Instance and therefore might be used to perform programmatic lookup. If no qualifier is passed to select method, the @Default qualifier is assumed.

Authors
Antoine Sabot-Durand, John D. Ament
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.lang.AutoCloseable.close.

Shuts down this SeContainer instance when it is no longer in scope.

public BeanManager

Returns:

the BeanManager
getBeanManager
()

Get the CDI BeanManager for this container

public boolean

Returns:

true if called before container shutdown
isRunning
()

Check if the container is running or was shut down

Inherited from javax.enterprise.inject.Instance:
destroyisAmbiguousisResolvableisUnsatisfiedselectselectselectstream

Method Detail

closeback to summary
public void close()

Redeclares java.lang.AutoCloseable.close.

Shuts down this SeContainer instance when it is no longer in scope. Implemented from AutoCloseable,

Annotations
@Override
Exceptions
IllegalStateException:
if the container is already shutdown
getBeanManagerback to summary
public BeanManager getBeanManager()

Get the CDI BeanManager for this container

Returns:BeanManager

the BeanManager

Exceptions
IllegalStateException:
if called when the container is already shutdown
isRunningback to summary
public boolean isRunning()

Check if the container is running or was shut down

Returns:boolean

true if called before container shutdown