public class DisposalMethod<X,T> extends AbstractReceiverBean<X,T,Method>
| Modifier and Type | Field and Description |
|---|---|
protected MethodInjectionPoint<T,? super X> |
disposalMethodInjectionPoint |
alternative, beanManager, name, qualifiers, scope, type, typesBEAN_ID_PREFIX, BEAN_ID_SEPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
DisposalMethod(BeanManagerImpl beanManager,
WeldMethod<T,? super X> disposalMethod,
AbstractClassBean<X> declaringBean,
ServiceRegistry services) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkType() |
T |
create(CreationalContext<T> creationalContext)
Create a new instance of the contextual type.
|
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.
|
protected String |
getDefaultName()
Gets the default name of the bean
|
WeldParameter<?,? super X> |
getDisposesParameter() |
String |
getName()
Gets the name of the bean
|
Class<? extends Annotation> |
getScope()
Gets the scope type of the bean
|
AbstractBean<?,?> |
getSpecializedBean() |
Set<Class<? extends Annotation>> |
getStereotypes()
Obtains the stereotypes
of the bean.
|
Class<T> |
getType()
Gets the type of the bean
|
Set<Type> |
getTypes()
Gets the API types of the bean
|
WeldMethod<T,? super X> |
getWeldAnnotated()
Returns the annotated item the bean represents
|
boolean |
hasDefaultProducer()
Returns true if the bean uses the default
Producer ( or InjectionTarget). |
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
protected void |
initQualifiers() |
protected void |
initScope() |
protected void |
initType() |
protected void |
initTypes()
Initializes the API types
|
void |
invokeDisposeMethod(Object instance) |
boolean |
isNullable()
Indicates if bean is nullable
|
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
boolean |
isProxyable() |
static <X,T> DisposalMethod<X,T> |
of(BeanManagerImpl manager,
WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
ServiceRegistry services) |
String |
toString() |
getDeclaringBean, getReceiveraddInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getNewInjectionPoints, getQualifiers, getServices, getTypedTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initializeAfterBeanDiscovery, initName, initScopeFromStereotype, initStereotypes, isAlternative, isDependent, isInitialized, isPrimitive, isProxyRequired, isSpecializing, postSpecialize, preSpecialize, specializeequals, getBeanClass, getBeanManager, getId, getInjectionPoints, getQualifierInstances, hashCode, isNormalScopedprotected MethodInjectionPoint<T,? super X> disposalMethodInjectionPoint
protected DisposalMethod(BeanManagerImpl beanManager, WeldMethod<T,? super X> disposalMethod, AbstractClassBean<X> declaringBean, ServiceRegistry services)
public static <X,T> DisposalMethod<X,T> of(BeanManagerImpl manager, WeldMethod<T,? super X> method, AbstractClassBean<X> declaringBean, ServiceRegistry services)
public WeldParameter<?,? super X> getDisposesParameter()
public void initialize(BeanDeployerEnvironment environment)
AbstractBeaninitialize in class AbstractReceiverBean<X,T,Method>protected void initType()
public WeldMethod<T,? super X> getWeldAnnotated()
AbstractBeangetWeldAnnotated in class AbstractReceiverBean<X,T,Method>protected void initQualifiers()
initQualifiers in class AbstractBean<T,Method>protected void initTypes()
initTypes in class AbstractBean<T,Method>public String getName()
AbstractBeangetName in interface Bean<T>getName in class AbstractBean<T,Method>Bean.getName()public Class<? extends Annotation> getScope()
AbstractBeangetScope in interface Bean<T>getScope in class AbstractBean<T,Method>Bean.getScope()public Set<Type> getTypes()
AbstractBeangetTypes in interface Bean<T>getTypes in class AbstractBean<T,Method>Bean.getTypes()public boolean isNullable()
AbstractBeanisNullable in interface Bean<T>isNullable in class AbstractBean<T,Method>Bean.isNullable()public boolean isPassivationCapableBean()
isPassivationCapableBean in class RIBean<T>public boolean isPassivationCapableDependency()
isPassivationCapableDependency in class RIBean<T>public boolean isProxyable()
isProxyable in class RIBean<T>public T create(CreationalContext<T> creationalContext)
ContextualCreationalContext
when obtaining contextual references to inject, in order to ensure
that any dependent objects are associated with the contextual instance
that is being created. An implementation may call
CreationalContext.push(Object)
between instantiation and injection to help the container minimize the
use of client proxy objects.creationalContext - the context in which this instance is being createdpublic void invokeDisposeMethod(Object instance)
protected void checkType()
checkType in class AbstractBean<T,Method>public Class<T> getType()
AbstractBeangetType in class AbstractBean<T,Method>protected String getDefaultName()
AbstractBeangetDefaultName in class AbstractBean<T,Method>public void destroy(T instance, CreationalContext<T> creationalContext)
ContextualCreationalContext.release()
to allow the container to destroy dependent objects of the contextual
instance.instance - the contextual instance to destroycreationalContext - the context in which this instance was createdpublic AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class AbstractBean<T,Method>protected void initScope()
initScope in class AbstractBean<T,Method>public Set<Class<? extends Annotation>> getStereotypes()
BeangetStereotypes in interface Bean<T>getStereotypes in class AbstractBean<T,Method>public boolean hasDefaultProducer()
AbstractBeanProducer ( or InjectionTarget). The method returns false if the
producer of the bean was replaced by an extension.hasDefaultProducer in class AbstractBean<T,Method>Copyright © 2013 Seam Framework. All Rights Reserved.