public class EEResourceProducerField<X,T> extends ProducerField<X,T>
typebeanManager| Modifier | Constructor and Description |
|---|---|
protected |
EEResourceProducerField(BeanAttributes<T> attributes,
EnhancedAnnotatedField<T,? super X> field,
AbstractClassBean<X> declaringBean,
DisposalMethod<X,?> disposalMethod,
BeanManagerImpl manager,
ServiceRegistry services) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkEEResource() |
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
static boolean |
isEEResourceProducerField(BeanManagerImpl beanManager,
AnnotatedField<?> field) |
boolean |
isPassivationCapableBean() |
static <X,T> EEResourceProducerField<X,T> |
of(BeanAttributes<T> attributes,
EnhancedAnnotatedField<T,? super X> field,
AbstractClassBean<X> declaringBean,
DisposalMethod<X,?> disposalMethod,
BeanManagerImpl manager,
ServiceRegistry services)
Creates an EE resource producer field
|
String |
toString() |
cleanupAfterBoot, getAnnotated, getEnhancedAnnotated, getSpecializedBeans, isProxyable, isSpecializingcheckReturnValue, checkType, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, initType, isPassivationCapableDependency, isTypeSerializablecheckSpecialization, getProducer, getType, initializeAfterBeanDiscovery, isDependent, isProxyRequired, postSpecialize, preInitialize, preSpecialize, setProducer, specializegetBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeprotected EEResourceProducerField(BeanAttributes<T> attributes, EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl manager, ServiceRegistry services)
public static <X,T> EEResourceProducerField<X,T> of(BeanAttributes<T> attributes, EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl manager, ServiceRegistry services)
field - The underlying method abstractiondeclaringBean - The declaring bean abstractionmanager - the current managerpublic static boolean isEEResourceProducerField(BeanManagerImpl beanManager, AnnotatedField<?> field)
beanManager - field - true if the given field is annotated with an EE resource annotation, false otherwisepublic void internalInitialize(BeanDeployerEnvironment environment)
AbstractProducerBeaninternalInitialize in class AbstractProducerBean<X,T,Field>protected void checkEEResource()
public T create(CreationalContext<T> creationalContext)
AbstractProducerBeancreate in interface Contextual<T>create in class AbstractProducerBean<X,T,Field>creationalContext - the context in which this instance is being createdpublic boolean isPassivationCapableBean()
isPassivationCapableBean in class AbstractProducerBean<X,T,Field>public String toString()
toString in class ProducerField<X,T>Copyright © 2015. All Rights Reserved.