Package org.jboss.weld.util.bean
Class IsolatedForwardingBean<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.util.bean.IsolatedForwardingBean<T>
-
- All Implemented Interfaces:
Contextual<T>
,Bean<T>
,BeanAttributes<T>
,WrappedContextual<T>
- Direct Known Subclasses:
ForwardingBean
,IsolatedForwardingBean.Impl
,IsolatedForwardingDecorator
,IsolatedForwardingInterceptor
public abstract class IsolatedForwardingBean<T> extends ForwardingBeanAttributes<T> implements Bean<T>, WrappedContextual<T>
Delegating implementation ofBean
. Separate delegate is used forBeanAttributes
methods, allowing this class to be used for processing of extension-provided beans.- Author:
- Jozef Hartinger
- See Also:
ProcessBeanAttributes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IsolatedForwardingBean.Impl<T>
-
Constructor Summary
Constructors Constructor Description IsolatedForwardingBean()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 theInjectionPoint
objects representing injection points of the bean, that will be validated by the container at initialization time.int
hashCode()
String
toString()
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
attributes, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
-
-
-
Method Detail
-
delegate
public abstract Bean<T> delegate()
- Specified by:
delegate
in interfaceWrappedContextual<T>
-
create
public T create(CreationalContext<T> creationalContext)
Description copied from interface:Contextual
Create a new instance of the contextual type. Instances should use the givenCreationalContext
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 callCreationalContext.push(Object)
between instantiation and injection to help the container minimize the use of client proxy objects.- Specified by:
create
in interfaceContextual<T>
- Parameters:
creationalContext
- the context in which this instance is being created- Returns:
- the contextual instance
-
destroy
public void destroy(T instance, CreationalContext<T> creationalContext)
Description copied from interface:Contextual
Destroy an instance of the contextual type. Implementations should callCreationalContext.release()
to allow the container to destroy dependent objects of the contextual instance.- Specified by:
destroy
in interfaceContextual<T>
- Parameters:
instance
- the contextual instance to destroycreationalContext
- the context in which this instance was created
-
getBeanClass
public Class<?> getBeanClass()
Description copied from interface:Bean
The bean class of the managed bean or session bean or of the bean that declares the producer method or field.- Specified by:
getBeanClass
in interfaceBean<T>
- Returns:
- the bean class
-
getInjectionPoints
public Set<InjectionPoint> getInjectionPoints()
Description copied from interface:Bean
Obtains theInjectionPoint
objects representing injection points of the bean, that will be validated by the container at initialization time.- Specified by:
getInjectionPoints
in interfaceBean<T>
- Returns:
- the set of injection points of the bean
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classForwardingBeanAttributes<T>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classForwardingBeanAttributes<T>
-
-