org.apache.webbeans.component
Class ResourceBean<X,T extends Annotation>
java.lang.Object
org.apache.webbeans.component.AbstractOwbBean<T>
org.apache.webbeans.component.AbstractProducerBean<T>
org.apache.webbeans.component.ProducerFieldBean<X>
org.apache.webbeans.component.ResourceBean<X,T>
- All Implemented Interfaces:
- Contextual<X>, Bean<X>, IBeanHasParent<X>, OwbBean<X>
public class ResourceBean<X,T extends Annotation>
- extends ProducerFieldBean<X>
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, validatePassivationDependencies |
ResourceBean
public ResourceBean(Class<X> returnType,
InjectionTargetBean<?> ownerBean,
ResourceReference<X,T> resourceReference)
createInstance
protected X createInstance(CreationalContext<X> creationalContext)
- Description copied from class:
ProducerFieldBean
- Creates the instance of the bean that has a specific implementation
type. Each subclass must define its own create mechanism.
- Overrides:
createInstance in class ProducerFieldBean<X>
- Parameters:
creationalContext - the contextual instance shall be created in
- Returns:
- instance of the bean
destroyInstance
protected void destroyInstance(X instance,
CreationalContext<X> creationalContext)
- Description copied from class:
AbstractProducerBean
- Destroy the instance of the bean. Each subclass must define its own
destroy mechanism.
- Overrides:
destroyInstance in class AbstractProducerBean<X>
- Parameters:
instance - instance of the bean that is being destroyedcreationalContext - the contextual instance has been created in
isPassivationCapable
public boolean isPassivationCapable()
- Description copied from interface:
OwbBean
- True if passivation capable false otherwise.
- Specified by:
isPassivationCapable in interface OwbBean<X>- Overrides:
isPassivationCapable in class ProducerFieldBean<X>
- Returns:
- true if this bean is passivation capable
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.