public class IdentityBeanDefinition extends Object implements Bean<DefaultIdentity>, Serializable, PassivationCapable
Customizes the Identity behavior accordingly with the configuration provided by the
application.
| Constructor and Description |
|---|
IdentityBeanDefinition(BeanManager beanManager) |
| Modifier and Type | Method and Description |
|---|---|
DefaultIdentity |
create(CreationalContext<DefaultIdentity> creationalContext)
Create a new instance of the contextual type.
|
void |
destroy(DefaultIdentity instance,
CreationalContext<DefaultIdentity> creationalContext)
Destroy an instance of the contextual type.
|
Class<DefaultIdentity> |
getBeanClass()
The bean class of the managed bean or session bean or
of the bean that declares the producer method or field.
|
String |
getId()
A string that uniquely identifies the instance of
Bean or
Contextual. |
Set<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time. |
String |
getName()
Obtains the EL name of a bean, if it has one.
|
Set<Annotation> |
getQualifiers()
Obtains the qualifiers of the bean.
|
Class<? extends Annotation> |
getScope()
Obtains the scope of the bean.
|
Set<Class<? extends Annotation>> |
getStereotypes()
Obtains the stereotypes
of the bean.
|
Set<Type> |
getTypes()
Obtains the bean types of the bean.
|
boolean |
isAlternative()
Determines if the bean is an
alternative.
|
boolean |
isNullable()
Determines if
Contextual.create(CreationalContext)
sometimes return a null value. |
void |
setSecurityConfiguration(SecurityConfiguration securityConfiguration) |
public IdentityBeanDefinition(BeanManager beanManager)
public void setSecurityConfiguration(SecurityConfiguration securityConfiguration)
public Set<Type> getTypes()
BeangetTypes in interface Bean<DefaultIdentity>public Set<Annotation> getQualifiers()
BeangetQualifiers in interface Bean<DefaultIdentity>public Class<? extends Annotation> getScope()
BeangetScope in interface Bean<DefaultIdentity>public String getName()
BeangetName in interface Bean<DefaultIdentity>public Set<Class<? extends Annotation>> getStereotypes()
BeangetStereotypes in interface Bean<DefaultIdentity>public Class<DefaultIdentity> getBeanClass()
BeangetBeanClass in interface Bean<DefaultIdentity>public boolean isAlternative()
BeanisAlternative in interface Bean<DefaultIdentity>public boolean isNullable()
BeanContextual.create(CreationalContext)
sometimes return a null value.isNullable in interface Bean<DefaultIdentity>create() method may return a null
value, and false otherwisepublic Set<InjectionPoint> getInjectionPoints()
BeanInjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time.getInjectionPoints in interface Bean<DefaultIdentity>public DefaultIdentity create(CreationalContext<DefaultIdentity> creationalContext)
ContextualCreationalContext
when obtaining contextual references to inject, in order to ensure
that any dependent objects are associated with the contextual instance
that is being created. An implementation may call
CreationalContext.push(Object)
between instantiation and injection to help the container minimize the
use of client proxy objects.create in interface Contextual<DefaultIdentity>creationalContext - the context in which this instance is being createdpublic void destroy(DefaultIdentity instance, CreationalContext<DefaultIdentity> creationalContext)
ContextualCreationalContext.release()
to allow the container to destroy dependent objects of the contextual
instance.destroy in interface Contextual<DefaultIdentity>instance - the contextual instance to destroycreationalContext - the context in which this instance was createdpublic String getId()
PassivationCapableBean or
Contextual. It is
recommended that the string contain the package name of
the class that implements Bean or Contextual.getId in interface PassivationCapableBean or
ContextualCopyright © 2018 JBoss by Red Hat. All rights reserved.