Package org.jboss.weld.bean.builtin
Class AbstractFacadeBean<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.RIBean<T>
-
- org.jboss.weld.bean.builtin.AbstractBuiltInBean<T>
-
- org.jboss.weld.bean.builtin.AbstractDecorableBuiltInBean<T>
-
- org.jboss.weld.bean.builtin.AbstractFacadeBean<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Contextual<T>
,Bean<T>
,BeanAttributes<T>
,PassivationCapable
,DecorableBean<T>
,WeldBean<T>
- Direct Known Subclasses:
EventBean
,InstanceBean
public abstract class AbstractFacadeBean<T> extends AbstractDecorableBuiltInBean<T>
The built-in bean for facade objects. Since special rules are applied for resolving facade beans, we need to resolve decorators per bean instance based on the required bean type.- Author:
- Jozef Hartinger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.weld.bean.builtin.AbstractBuiltInBean
AbstractBuiltInBean.BuiltInBeanAttributes<T>
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFacadeBean(BeanManagerImpl manager, Class<T> type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
destroy(T instance, CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.protected List<Decorator<?>>
getDecorators(InjectionPoint ip)
protected abstract Type
getDefaultType()
protected InjectionPoint
getInjectionPoint(CurrentInjectionPoint cip)
protected Class<T>
getProxyClass()
void
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g.-
Methods inherited from class org.jboss.weld.bean.builtin.AbstractDecorableBuiltInBean
create, getBeanClass, getDecorators, newInstance
-
Methods inherited from class org.jboss.weld.bean.builtin.AbstractBuiltInBean
cleanupAfterBoot, getInjectionPoints, getType, internalInitialize, isDependentContextOptimizationAllowed, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, isProxyRequired, preInitialize
-
Methods inherited from class org.jboss.weld.bean.RIBean
getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isDependent, isNormalScoped, setAttributes
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, isNullable, toString, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
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.Bean
getInjectionPoints, isNullable
-
Methods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface jakarta.enterprise.inject.spi.PassivationCapable
getId
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
-
-
-
Constructor Detail
-
AbstractFacadeBean
protected AbstractFacadeBean(BeanManagerImpl manager, Class<T> type)
-
-
Method Detail
-
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.
-
getProxyClass
protected Class<T> getProxyClass()
- Specified by:
getProxyClass
in classAbstractDecorableBuiltInBean<T>
-
initializeAfterBeanDiscovery
public void initializeAfterBeanDiscovery()
Description copied from class:RIBean
In particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g. for initializing decorators taking into account the possibility of having custom decorators which are deployed through portable extensions)- Overrides:
initializeAfterBeanDiscovery
in classAbstractBuiltInBean<T>
-
getDecorators
protected List<Decorator<?>> getDecorators(InjectionPoint ip)
- Specified by:
getDecorators
in classAbstractDecorableBuiltInBean<T>
-
getInjectionPoint
protected InjectionPoint getInjectionPoint(CurrentInjectionPoint cip)
- Overrides:
getInjectionPoint
in classAbstractDecorableBuiltInBean<T>
-
getDefaultType
protected abstract Type getDefaultType()
-
-