public class SessionBeanInjectionTarget<T> extends AbstractInjectionTarget<T>
beanManager| Constructor and Description |
|---|
SessionBeanInjectionTarget(EnhancedAnnotatedType<T> type,
SessionBean<T> bean,
BeanManagerImpl beanManager) |
| Modifier and Type | Method and Description |
|---|---|
SessionBean<T> |
getBean()
Returns a
Bean this producer is associated with or null if no such bean exists. |
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.
|
protected void |
registerInterceptors() |
checkDecoratedMethods, checkType, dispose, getAnnotated, getBeanManager, getInitializerMethods, getInjectableFields, getInjectionPoints, getInstantiator, getPostConstructMethods, getPreDestroyMethods, getType, hasDecorators, hasInterceptors, isDecorator, isInterceptionCandidate, isInterceptor, postConstruct, preDestroy, produce, setInstantiator, toStringcheckDelegateInjectionPoints, equals, hashCodepublic SessionBeanInjectionTarget(EnhancedAnnotatedType<T> type, SessionBean<T> bean, BeanManagerImpl beanManager)
public void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
initializeAfterBeanDiscovery in class AbstractInjectionTarget<T>protected void registerInterceptors()
public SessionBean<T> getBean()
AbstractProducerBean this producer is associated with or null if no such bean exists.getBean 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 instancesprotected 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>Copyright © 2012 Seam Framework. All Rights Reserved.