public class DefaultInjectionTarget<T> extends AbstractInjectionTarget<T>
beanManager| Constructor and Description |
|---|
DefaultInjectionTarget(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(T instance)
Destroys the instance.
|
Set<ResourceInjectionPoint<?,?>> |
getResourceInjectionPoints() |
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.
|
void |
postConstruct(T instance)
Calls the
PostConstruct callback, if it exists, according to the semantics required by the Java
EE platform specification. |
void |
preDestroy(T instance)
Calls the
PreDestroy callback, if it exists, according to the semantics required by the Java EE
platform specification. |
checkDecoratedMethods, checkType, getAnnotated, getBean, getBeanManager, getInitializerMethods, getInjectableFields, getInjectionPoints, getInstantiator, getPostConstructMethods, getPreDestroyMethods, getType, hasDecorators, hasInterceptors, isDecorator, isInterceptionCandidate, isInterceptor, produce, setInstantiator, toStringcheckDelegateInjectionPoints, equals, hashCodepublic DefaultInjectionTarget(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 AbstractInjectionTarget<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.
instance - The instance upon which to perform injectionctx - The CreationalContext to use for creating new instancespublic void postConstruct(T instance)
InjectionTarget
Calls the PostConstruct callback, if it exists, according to the semantics required by the Java
EE platform specification.
postConstruct in interface InjectionTarget<T>postConstruct in class AbstractInjectionTarget<T>instance - The instance on which to invoke the PostConstruct methodpublic void preDestroy(T instance)
InjectionTarget
Calls the PreDestroy callback, if it exists, according to the semantics required by the Java EE
platform specification.
preDestroy in interface InjectionTarget<T>preDestroy in class AbstractInjectionTarget<T>instance - The instance on which to invoke the PreDestroy methodpublic void dispose(T instance)
ProducerDestroys the instance.
If the Producer represents a class, then this operation does nothing.
If the Producer represents a producer field or method, this calls the disposer method, if any, on a contextual
instance of the bean that declares the disposer method or performs any additional required cleanup, if any, to destroy
state associated with a resource.
public void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
initializeAfterBeanDiscovery in class AbstractInjectionTarget<T>public Set<ResourceInjectionPoint<?,?>> getResourceInjectionPoints()
Copyright © 2012 Seam Framework. All Rights Reserved.