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, introspectProduces
destroy
getBean, getBeanClass, isAlternative, isNullable
calculatePassivationId, createObject, getBeanManager, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toString
public T create(CreationalContext<T> env)
Contextual
create
in interface Contextual<T>
create
in class AbstractSingletonBean<T>
env
- the creation context used to support circular
references.public java.util.Set<InjectionPoint> getInjectionPoints()
Bean
getInjectionPoints
in interface Bean<T>
getInjectionPoints
in class BeanAdapter<T,T>
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class AbstractSingletonBean<T>