public abstract class IsolatedForwardingBean<T> extends ForwardingBeanAttributes<T> implements Bean<T>, WrappedContextual<T>
Bean. Separate delegate is used for BeanAttributes methods, allowing this class
to be used for processing of extension-provided beans.ProcessBeanAttributes| Modifier and Type | Class and Description |
|---|---|
static class |
IsolatedForwardingBean.Impl<T> |
| Constructor and Description |
|---|
IsolatedForwardingBean() |
| Modifier and Type | Method and Description |
|---|---|
T |
create(CreationalContext<T> creationalContext)
Create a new instance of the contextual type.
|
abstract Bean<T> |
delegate() |
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.
|
boolean |
equals(Object obj) |
Class<?> |
getBeanClass()
The bean class of the managed bean or session bean or of the bean that declares the producer method or
field.
|
Set<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects representing injection points of the bean, that
will be validated by the container at initialization time. |
int |
hashCode() |
boolean |
isNullable()
Determines if
Contextual.create(CreationalContext) sometimes return a null value. |
String |
toString() |
attributes, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativepublic abstract Bean<T> delegate()
delegate in interface WrappedContextual<T>public T create(CreationalContext<T> 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<T>creationalContext - the context in which this instance is being createdpublic void destroy(T instance, CreationalContext<T> creationalContext)
ContextualCreationalContext.release() to allow the container to destroy dependent objects of
the contextual instance.destroy in interface Contextual<T>instance - the contextual instance to destroycreationalContext - the context in which this instance was createdpublic Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>public 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<T>public boolean isNullable()
Bean
Determines if Contextual.create(CreationalContext) sometimes return a null value.
As of CDI 1.1 this method is deprecated and can safely always return false.
isNullable in interface Bean<T>create() method may return a null value, and false otherwisepublic int hashCode()
hashCode in class ForwardingBeanAttributes<T>public boolean equals(Object obj)
equals in class ForwardingBeanAttributes<T>Copyright © 2016. All Rights Reserved.