Package org.jboss.weld.bean.builtin
Class AbstractDecorableBuiltInBean<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>
-
- All Implemented Interfaces:
Contextual<T>,Bean<T>,BeanAttributes<T>,PassivationCapable,DecorableBean<T>,WeldBean<T>
- Direct Known Subclasses:
AbstractFacadeBean,AbstractStaticallyDecorableBuiltInBean
public abstract class AbstractDecorableBuiltInBean<T> extends AbstractBuiltInBean<T> implements DecorableBean<T>
Built-in bean that can be decorated by aDecorator- 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 protectedAbstractDecorableBuiltInBean(BeanManagerImpl beanManager, Class<T> type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tcreate(CreationalContext<T> creationalContext)Create a new instance of the contextual type.Class<?>getBeanClass()The bean class of the managed bean or session bean or of the bean that declares the producer method or field.List<Decorator<?>>getDecorators()Resolves decorators for this bean.protected abstract List<Decorator<?>>getDecorators(InjectionPoint ip)protected InjectionPointgetInjectionPoint(CurrentInjectionPoint cip)protected abstract Class<T>getProxyClass()protected abstract TnewInstance(InjectionPoint ip, CreationalContext<T> creationalContext)-
Methods inherited from class org.jboss.weld.bean.builtin.AbstractBuiltInBean
cleanupAfterBoot, getInjectionPoints, getType, initializeAfterBeanDiscovery, internalInitialize, isDependentContextOptimizationAllowed, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, isProxyRequired, preInitialize
-
Methods inherited from class org.jboss.weld.bean.RIBean
destroy, 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 javax.enterprise.inject.spi.Bean
getInjectionPoints, isNullable
-
Methods inherited from interface javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface javax.enterprise.context.spi.Contextual
destroy
-
Methods inherited from interface javax.enterprise.inject.spi.PassivationCapable
getId
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
-
-
-
Constructor Detail
-
AbstractDecorableBuiltInBean
protected AbstractDecorableBuiltInBean(BeanManagerImpl beanManager, Class<T> type)
-
-
Method Detail
-
create
public T create(CreationalContext<T> creationalContext)
Description copied from interface:ContextualCreate a new instance of the contextual type. Instances should use the givenCreationalContextwhen 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:
createin interfaceContextual<T>- Parameters:
creationalContext- the context in which this instance is being created- Returns:
- the contextual instance
-
newInstance
protected abstract T newInstance(InjectionPoint ip, CreationalContext<T> creationalContext)
-
getDecorators
protected abstract List<Decorator<?>> getDecorators(InjectionPoint ip)
-
getInjectionPoint
protected InjectionPoint getInjectionPoint(CurrentInjectionPoint cip)
-
getBeanClass
public Class<?> getBeanClass()
Description copied from interface:BeanThe bean class of the managed bean or session bean or of the bean that declares the producer method or field.- Specified by:
getBeanClassin interfaceBean<T>- Overrides:
getBeanClassin classRIBean<T>- Returns:
- the bean class
-
getDecorators
public List<Decorator<?>> getDecorators()
Description copied from interface:DecorableBeanResolves decorators for this bean.- Specified by:
getDecoratorsin interfaceDecorableBean<T>
-
-