T - public class DecoratorInjectionTarget<T> extends DefaultInjectionTarget<T>
InjectionTarget implementation used for decorators.beanManager| Constructor and Description |
|---|
DecoratorInjectionTarget(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDelegateInjectionPoints() |
void |
initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType) |
protected Instantiator<T> |
initInstantiator(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager,
Set<InjectionPoint> injectionPoints)
Returns an instantiator that will be used to create a new instance of a given component.
|
void |
inject(T instance,
CreationalContext<T> ctx)
Performs dependency injection upon the given object.
|
dispose, getResourceInjectionPoints, postConstruct, preDestroycheckDecoratedMethods, checkType, getAnnotated, getBean, getBeanManager, getInitializerMethods, getInjectableFields, getInjectionPoints, getInstantiator, getPostConstructMethods, getPreDestroyMethods, getType, hasDecorators, hasInterceptors, isDecorator, isInterceptionCandidate, isInterceptor, produce, setInstantiator, toStringequals, hashCodepublic DecoratorInjectionTarget(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager)
protected Instantiator<T> initInstantiator(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Set<InjectionPoint> injectionPoints)
AbstractInjectionTargetAbstractInjectionTarget.initInstantiator(EnhancedAnnotatedType, Bean, BeanManagerImpl, Set) method is supposed to register all these
injection points within the injectionPoints set passed in as a parameter.initInstantiator in class DefaultInjectionTarget<T>protected void checkDelegateInjectionPoints()
checkDelegateInjectionPoints in class AbstractProducer<T>public void inject(T instance, CreationalContext<T> ctx)
InjectionTargetPerforms dependency injection upon the given object. Performs Java EE component environment injection, sets the value of all injected fields, and calls all initializer methods.
inject in interface InjectionTarget<T>inject in class DefaultInjectionTarget<T>instance - The instance upon which to perform injectionctx - The CreationalContext to use for creating new instancespublic void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
initializeAfterBeanDiscovery in class DefaultInjectionTarget<T>Copyright © 2012 Seam Framework. All Rights Reserved.