public abstract class AbstractDecorableBuiltInBean<T> extends AbstractBuiltInBean<T> implements DecorableBean<T>
Decorator
AbstractBuiltInBean.BuiltInBeanAttributes<T>
beanManager
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractDecorableBuiltInBean(String idSuffix,
BeanManagerImpl beanManager,
Class<T> type) |
Modifier and Type | Method and Description |
---|---|
T |
create(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 InjectionPoint |
getInjectionPoint(CurrentInjectionPoint cip) |
protected abstract Class<T> |
getProxyClass() |
protected abstract T |
newInstance(InjectionPoint ip,
CreationalContext<T> creationalContext) |
cleanupAfterBoot, getInjectionPoints, getType, initializeAfterBeanDiscovery, internalInitialize, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, isProxyRequired, preInitialize
getBeanManager, getQualifierInstances, initialize, isDependent
attributes, equals, getId, hashCode, isNullable, setAttributes, toString, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInjectionPoints, isNullable
destroy
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
getId
protected AbstractDecorableBuiltInBean(String idSuffix, BeanManagerImpl beanManager, Class<T> type)
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 createdprotected abstract T newInstance(InjectionPoint ip, CreationalContext<T> creationalContext)
protected abstract List<Decorator<?>> getDecorators(InjectionPoint ip)
protected InjectionPoint getInjectionPoint(CurrentInjectionPoint cip)
public Class<?> getBeanClass()
Bean
getBeanClass
in interface Bean<T>
getBeanClass
in class RIBean<T>
public List<Decorator<?>> getDecorators()
DecorableBean
getDecorators
in interface DecorableBean<T>
Copyright © 2013 Seam Framework. All Rights Reserved.