org.jboss.weld.bean
Class DisposalMethod<X,T>

java.lang.Object
  extended by org.jboss.weld.bean.RIBean<T>
      extended by org.jboss.weld.bean.AbstractBean<T,S>
          extended by org.jboss.weld.bean.AbstractReceiverBean<X,T,java.lang.reflect.Method>
              extended by org.jboss.weld.bean.DisposalMethod<X,T>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.PassivationCapable

public class DisposalMethod<X,T>
extends AbstractReceiverBean<X,T,java.lang.reflect.Method>


Field Summary
protected  MethodInjectionPoint<T,X> disposalMethodInjectionPoint
           
 
Fields inherited from class org.jboss.weld.bean.AbstractBean
bindings, manager, name, scopeType, type, types
 
Fields inherited from class org.jboss.weld.bean.RIBean
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
 
Constructor Summary
protected DisposalMethod(BeanManagerImpl manager, WeldMethod<T,X> disposalMethod, AbstractClassBean<X> declaringBean)
           
 
Method Summary
 T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 WeldMethod<T,X> getAnnotatedItem()
          Returns the annotated time the bean represents
protected  java.lang.String getDefaultName()
          Gets the default name of the bean
 java.lang.String getDescription()
           
 WeldParameter<?,X> getDisposesParameter()
           
 java.lang.String getName()
          Gets the name of the bean
 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
          Gets the scope type of the bean
 AbstractBean<?,?> getSpecializedBean()
           
 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
           
 java.lang.Class<T> getType()
          Gets the type of the bean
 java.util.Set<java.lang.reflect.Type> getTypes()
          Gets the API types of the bean
protected  void initBindings()
          Initializes the binding types
 void initialize(BeanDeployerEnvironment environment)
          Initializes the bean and its metadata
protected  void initScopeType()
          Initializes the scope type
protected  void initType()
           
protected  void initTypes()
          Initializes the API types
 void invokeDisposeMethod(java.lang.Object instance)
           
 boolean isNullable()
          Indicates if bean is nullable
 boolean isProxyable()
           
 boolean isSerializable()
           
static
<X,T> DisposalMethod<X,T>
of(BeanManagerImpl manager, WeldMethod<T,X> disposalMethod, AbstractClassBean<X> declaringBean)
           
 
Methods inherited from class org.jboss.weld.bean.AbstractReceiverBean
getDeclaringBean, getReceiver, initPolicy, isAlternative
 
Methods inherited from class org.jboss.weld.bean.AbstractBean
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, getAnnotatedInjectionPoints, getDelegateInjectionPoints, getMergedStereotypes, getQualifiers, initDefaultBindings, initName, initPrimitive, initProxyable, initScopeTypeFromStereotype, initSerializable, initStereotypes, isDependent, isInitialized, isNormalScoped, isPrimitive, isSpecializing, postSpecialize, preSpecialize, specialize
 
Methods inherited from class org.jboss.weld.bean.RIBean
equals, getBeanClass, getId, getInjectionPoints, getManager, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

disposalMethodInjectionPoint

protected MethodInjectionPoint<T,X> disposalMethodInjectionPoint
Constructor Detail

DisposalMethod

protected DisposalMethod(BeanManagerImpl manager,
                         WeldMethod<T,X> disposalMethod,
                         AbstractClassBean<X> declaringBean)
Method Detail

getDisposesParameter

public WeldParameter<?,X> getDisposesParameter()

initialize

public void initialize(BeanDeployerEnvironment environment)
Description copied from class: AbstractBean
Initializes the bean and its metadata

Overrides:
initialize in class AbstractReceiverBean<X,T,java.lang.reflect.Method>

initType

protected void initType()

getAnnotatedItem

public WeldMethod<T,X> getAnnotatedItem()
Description copied from class: AbstractBean
Returns the annotated time the bean represents

Specified by:
getAnnotatedItem in class AbstractReceiverBean<X,T,java.lang.reflect.Method>
Returns:
The annotated item

of

public static <X,T> DisposalMethod<X,T> of(BeanManagerImpl manager,
                                           WeldMethod<T,X> disposalMethod,
                                           AbstractClassBean<X> declaringBean)

initBindings

protected void initBindings()
Description copied from class: AbstractBean
Initializes the binding types

Overrides:
initBindings in class AbstractBean<T,java.lang.reflect.Method>

initTypes

protected void initTypes()
Initializes the API types

Overrides:
initTypes in class AbstractBean<T,java.lang.reflect.Method>

getName

public java.lang.String getName()
Description copied from class: AbstractBean
Gets the name of the bean

Specified by:
getName in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getName in class AbstractBean<T,java.lang.reflect.Method>
Returns:
The name
See Also:
org.jboss.weld.bean.BaseBean#getName()

getScope

public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Description copied from class: AbstractBean
Gets the scope type of the bean

Specified by:
getScope in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getScope in class AbstractBean<T,java.lang.reflect.Method>
Returns:
The scope type
See Also:
org.jboss.weld.bean.BaseBean#getScope()

getTypes

public java.util.Set<java.lang.reflect.Type> getTypes()
Description copied from class: AbstractBean
Gets the API types of the bean

Specified by:
getTypes in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getTypes in class AbstractBean<T,java.lang.reflect.Method>
Returns:
The set of API types
See Also:
org.jboss.weld.bean.BaseBean#getTypeClosure()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class RIBean<T>

isNullable

public boolean isNullable()
Description copied from class: AbstractBean
Indicates if bean is nullable

Specified by:
isNullable in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
isNullable in class AbstractBean<T,java.lang.reflect.Method>
Returns:
True if nullable, false otherwise
See Also:
org.jboss.weld.bean.BaseBean#isNullable()

isSerializable

public boolean isSerializable()
Overrides:
isSerializable in class AbstractBean<T,java.lang.reflect.Method>

isProxyable

public boolean isProxyable()
Overrides:
isProxyable in class AbstractBean<T,java.lang.reflect.Method>

create

public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)

invokeDisposeMethod

public void invokeDisposeMethod(java.lang.Object instance)

getType

public java.lang.Class<T> getType()
Description copied from class: AbstractBean
Gets the type of the bean

Overrides:
getType in class AbstractBean<T,java.lang.reflect.Method>
Returns:
The type

getDefaultName

protected java.lang.String getDefaultName()
Description copied from class: AbstractBean
Gets the default name of the bean

Specified by:
getDefaultName in class AbstractBean<T,java.lang.reflect.Method>
Returns:
The default name

destroy

public void destroy(T instance,
                    javax.enterprise.context.spi.CreationalContext<T> creationalContext)

getSpecializedBean

public AbstractBean<?,?> getSpecializedBean()
Specified by:
getSpecializedBean in class AbstractBean<T,java.lang.reflect.Method>

initScopeType

protected void initScopeType()
Description copied from class: AbstractBean
Initializes the scope type

Specified by:
initScopeType in class AbstractBean<T,java.lang.reflect.Method>

getStereotypes

public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Specified by:
getStereotypes in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getStereotypes in class AbstractBean<T,java.lang.reflect.Method>


Copyright © 2008-2009 Seam Framework. All Rights Reserved.