public abstract class AbstractSingletonBean<T> extends BeanWrapper<T> implements java.io.Closeable, AnnotatedBean, PassivationCapable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees the singleton on environment shutdown
|
abstract T |
create(CreationalContext<T> env)
Creates a new instance for the Contextual's type.
|
Annotated |
getAnnotated() |
AnnotatedType<T> |
getAnnotatedType() |
java.lang.String |
getId()
Return passivation id
|
java.lang.String |
getName()
Returns the bean's name or null if the bean does not have a primary name.
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Returns the bean's qualifier annotations.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the bean's scope type.
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Returns the stereotypes that the bean uses for priority
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean exports for bindings.
|
void |
introspectObservers() |
void |
introspectProduces() |
destroygetBean, getBeanClass, getInjectionPoints, isAlternative, isNullablecalculatePassivationId, createObject, getBeanManager, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toStringpublic Annotated getAnnotated()
getAnnotated in interface AnnotatedBeangetAnnotated in class BeanAdapter<T,T>public AnnotatedType<T> getAnnotatedType()
getAnnotatedType in class AbstractBean<T>public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
BeangetQualifiers in interface Bean<T>getQualifiers in class BeanAdapter<T,T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
BeangetStereotypes in interface Bean<T>getStereotypes in class BeanAdapter<T,T>public java.lang.String getName()
Beanpublic java.lang.String getId()
getId in interface PassivationCapablegetId in class AbstractBean<T>public void introspectProduces()
public void introspectObservers()
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public java.util.Set<java.lang.reflect.Type> getTypes()
public abstract T create(CreationalContext<T> env)
Contextualcreate in interface Contextual<T>create in class BeanWrapper<T>env - the creation context used to support circular
references.public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable