public abstract class IsolatedForwardingBean<T> extends ForwardingBeanAttributes<T> implements Bean<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.
|
protected 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, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
public T create(CreationalContext<T> creationalContext)
Contextual
CreationalContext
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)
Contextual
CreationalContext.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()
Bean
getBeanClass
in interface Bean<T>
public Set<InjectionPoint> getInjectionPoints()
Bean
InjectionPoint
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 © 2013 Seam Framework. All Rights Reserved.