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() |
destroy
getBean, getBeanClass, getInjectionPoints, isAlternative, isNullable
calculatePassivationId, createObject, getBeanManager, getInjectionTarget, getJavaClass, introspect, isPassivationCapable, toDisplayString, toDisplayStringImpl, toString
public Annotated getAnnotated()
getAnnotated
in interface AnnotatedBean
getAnnotated
in class BeanAdapter<T,T>
public AnnotatedType<T> getAnnotatedType()
getAnnotatedType
in class AbstractBean<T>
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Bean
getQualifiers
in interface Bean<T>
getQualifiers
in class BeanAdapter<T,T>
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Bean
getStereotypes
in interface Bean<T>
getStereotypes
in class BeanAdapter<T,T>
public java.lang.String getName()
Bean
public java.lang.String getId()
getId
in interface PassivationCapable
getId
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)
Contextual
create
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.Closeable
close
in interface java.lang.AutoCloseable