public class SingletonBean<T> extends AbstractSingletonBean<T> implements java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees the singleton on environment shutdown
|
T |
create(CreationalContext<T> env)
Creates a new instance for the Contextual's type.
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation.
|
getAnnotated, getAnnotatedType, getId, getName, getQualifiers, getScope, getStereotypes, getTypes, introspectObservers, introspectProducesdestroygetBean, getBeanClass, isAlternative, isNullablecalculatePassivationId, createObject, getBeanManager, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toStringpublic T create(CreationalContext<T> env)
Contextualcreate in interface Contextual<T>create in class AbstractSingletonBean<T>env - the creation context used to support circular
references.public java.util.Set<InjectionPoint> getInjectionPoints()
BeangetInjectionPoints in interface Bean<T>getInjectionPoints in class BeanAdapter<T,T>public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class AbstractSingletonBean<T>