public class ResourceBean<X,T extends Annotation> extends ProducerFieldBean<X>
ownerComponentapiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, webBeansType| Constructor and Description |
|---|
ResourceBean(Class<X> returnType,
InjectionTargetBean<?> ownerBean,
ResourceReference<X,T> resourceReference) |
| Modifier and Type | Method and Description |
|---|---|
protected X |
createInstance(javax.enterprise.context.spi.CreationalContext<X> creationalContext)
Creates the instance of the bean that has a specific implementation
type.
|
X |
getActualInstance()
Called after deserialization to get a new instance for some type of resource bean instance that are
not serializable.
|
boolean |
isPassivationCapable()
True if passivation capable false otherwise.
|
checkNullInstance, checkScopeType, createDefaultInstance, getCreatorField, getId, setProducerFielddestroyBean, dispose, equals, getParent, getParentInstance, getParentInstanceFromContext, hashCode, isPassivationCapable, validatePassivationDependenciesaddApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, destroyInstance, getBeanClass, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdispose, getParentpublic ResourceBean(Class<X> returnType, InjectionTargetBean<?> ownerBean, ResourceReference<X,T> resourceReference)
protected X createInstance(javax.enterprise.context.spi.CreationalContext<X> creationalContext)
ProducerFieldBeancreateInstance in class ProducerFieldBean<X>creationalContext - the contextual instance shall be created inpublic X getActualInstance()
public boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<X>isPassivationCapable in class ProducerFieldBean<X>Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.