|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,S>
org.jboss.weld.bean.AbstractReceiverBean<X,T,Method>
org.jboss.weld.bean.DisposalMethod<X,T>
public class DisposalMethod<X,T>
Field Summary | |
---|---|
protected MethodInjectionPoint<T,? super X> |
disposalMethodInjectionPoint
|
Fields inherited from class org.jboss.weld.bean.AbstractBean |
---|
alternative, beanManager, name, qualifiers, scope, type, types |
Fields inherited from class org.jboss.weld.bean.RIBean |
---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
Constructor Summary | |
---|---|
protected |
DisposalMethod(BeanManagerImpl beanManager,
WeldMethod<T,? super X> disposalMethod,
AbstractClassBean<X> declaringBean,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
|
Method Summary | ||
---|---|---|
protected void |
checkType()
|
|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
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()
|
|
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
|
of(BeanManagerImpl manager,
WeldMethod<T,? super X> method,
AbstractClassBean<X> declaringBean,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
|
|
String |
toString()
|
Methods inherited from class org.jboss.weld.bean.AbstractReceiverBean |
---|
getDeclaringBean, getReceiver |
Methods inherited from class org.jboss.weld.bean.RIBean |
---|
equals, getBeanClass, getBeanManager, getId, getInjectionPoints, getQualifierInstances, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MethodInjectionPoint<T,? super X> disposalMethodInjectionPoint
Constructor Detail |
---|
protected DisposalMethod(BeanManagerImpl beanManager, WeldMethod<T,? super X> disposalMethod, AbstractClassBean<X> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services)
Method Detail |
---|
public static <X,T> DisposalMethod<X,T> of(BeanManagerImpl manager, WeldMethod<T,? super X> method, AbstractClassBean<X> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services)
public WeldParameter<?,? super X> getDisposesParameter()
public void initialize(BeanDeployerEnvironment environment)
AbstractBean
initialize
in class AbstractReceiverBean<X,T,Method>
protected void initType()
public WeldMethod<T,? super X> getWeldAnnotated()
AbstractBean
getWeldAnnotated
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()
AbstractBean
getName
in interface javax.enterprise.inject.spi.Bean<T>
getName
in class AbstractBean<T,Method>
Bean.getName()
public Class<? extends Annotation> getScope()
AbstractBean
getScope
in interface javax.enterprise.inject.spi.Bean<T>
getScope
in class AbstractBean<T,Method>
Bean.getScope()
public Set<Type> getTypes()
AbstractBean
getTypes
in interface javax.enterprise.inject.spi.Bean<T>
getTypes
in class AbstractBean<T,Method>
Bean.getTypes()
public boolean isNullable()
AbstractBean
isNullable
in interface javax.enterprise.inject.spi.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(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public void invokeDisposeMethod(Object instance)
protected void checkType()
checkType
in class AbstractBean<T,Method>
public Class<T> getType()
AbstractBean
getType
in class AbstractBean<T,Method>
protected String getDefaultName()
AbstractBean
getDefaultName
in class AbstractBean<T,Method>
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean
in class AbstractBean<T,Method>
protected void initScope()
initScope
in class AbstractBean<T,Method>
public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes
in interface javax.enterprise.inject.spi.Bean<T>
getStereotypes
in class AbstractBean<T,Method>
public String toString()
toString
in class RIBean<T>
public boolean hasDefaultProducer()
AbstractBean
Producer
( or InjectionTarget
). The method returns false if the
producer of the bean was replaced by an extension.
hasDefaultProducer
in class AbstractBean<T,Method>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |