public class SessionBeanInjectionTarget<T> extends BeanInjectionTarget<T>
beanManager| Modifier and Type | Method and Description |
|---|---|
protected void |
buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType,
AbstractInstantiator<T> instantiator) |
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.
|
static <T> SessionBeanInjectionTarget<T> |
of(EnhancedAnnotatedType<T> type,
SessionBean<T> bean,
BeanManagerImpl beanManager) |
T |
produce(CreationalContext<T> ctx)
Causes an instance to be produced via the
Producer. |
createDefault, dispose, forCdiInterceptor, checkDecoratedMethods, checkNoArgsConstructor, initializeInterceptionModel, isDecorator, isInterceptionCandidate, isInterceptor, setupConstructorInterceptionInstantiatorcreate, createDefault, createNonCdiInterceptor, getAnnotated, getAnnotatedType, getBeanManager, getInjectionPoints, getInjector, getInstantiator, getLifecycleCallbackInvoker, getType, hasDecorators, hasInterceptors, checkType, postConstruct, preDestroy, setInstantiator, toStringequals, hashCode, checkDelegateInjectionPointspublic static <T> SessionBeanInjectionTarget<T> of(EnhancedAnnotatedType<T> type, SessionBean<T> bean, BeanManagerImpl beanManager)
public SessionBean<T> getBean()
AbstractProducerBean this producer is associated with or null if no such bean exists.getBean in class BeanInjectionTarget<T>protected Instantiator<T> initInstantiator(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Set<InjectionPoint> injectionPoints)
BasicInjectionTargetBasicInjectionTarget.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 BasicInjectionTarget<T>public void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
initializeAfterBeanDiscovery in class BeanInjectionTarget<T>protected void buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator)
buildInterceptionModel in class BeanInjectionTarget<T>public T produce(CreationalContext<T> ctx)
Producer
Causes an instance to be produced via the Producer.
If the Producer represents a class, this will invoke the constructor annotated Inject if it
exists, or the constructor with no parameters otherwise. If the class has interceptors, produce() is responsible
for building the interceptors and decorators of the instance.
If the Producer represents a producer field or method, this will invoke the producer method on, or access the
producer field of, a contextual instance of the bean that declares the producer.
produce in interface Producer<T>produce in class BeanInjectionTarget<T>ctx - The CreationalContext to use for the produced objectpublic 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 BasicInjectionTarget<T>instance - The instance upon which to perform injectionctx - The CreationalContext to use for creating new instancesCopyright © 2015. All Rights Reserved.