Class SessionBeanInjectionTarget<T>
- java.lang.Object
-
- org.jboss.weld.injection.producer.AbstractProducer<T>
-
- org.jboss.weld.injection.producer.BasicInjectionTarget<T>
-
- org.jboss.weld.injection.producer.BeanInjectionTarget<T>
-
- org.jboss.weld.injection.producer.ejb.SessionBeanInjectionTarget<T>
-
- All Implemented Interfaces:
javax.enterprise.inject.spi.InjectionTarget<T>,javax.enterprise.inject.spi.Producer<T>,org.jboss.weld.manager.api.WeldInjectionTarget<T>
public class SessionBeanInjectionTarget<T> extends BeanInjectionTarget<T>
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.injection.producer.BasicInjectionTarget
beanManager
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator)SessionBean<T>getBean()Returns aBeanthis producer is associated with or null if no such bean exists.voidinitializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)protected Instantiator<T>initInstantiator(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager, Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints)Returns an instantiator that will be used to create a new instance of a given component.voidinject(T instance, javax.enterprise.context.spi.CreationalContext<T> ctx)static <T> SessionBeanInjectionTarget<T>of(EnhancedAnnotatedType<T> type, SessionBean<T> bean, BeanManagerImpl beanManager)Tproduce(javax.enterprise.context.spi.CreationalContext<T> ctx)-
Methods inherited from class org.jboss.weld.injection.producer.BeanInjectionTarget
checkDecoratedMethods, checkNoArgsConstructor, createDefault, dispose, forCdiInterceptor, initializeInterceptionModel, isDecorator, isInterceptionCandidate, isInterceptor, setupConstructorInterceptionInstantiator
-
Methods inherited from class org.jboss.weld.injection.producer.BasicInjectionTarget
checkType, create, createDefault, createNonCdiInterceptor, getAnnotated, getAnnotatedType, getBeanManager, getInjectionPoints, getInjector, getInstantiator, getLifecycleCallbackInvoker, getType, hasDecorators, hasInterceptors, postConstruct, preDestroy, setInstantiator, toString
-
Methods inherited from class org.jboss.weld.injection.producer.AbstractProducer
checkDelegateInjectionPoints, equals, hashCode
-
-
-
-
Method Detail
-
of
public static <T> SessionBeanInjectionTarget<T> of(EnhancedAnnotatedType<T> type, SessionBean<T> bean, BeanManagerImpl beanManager)
-
getBean
public SessionBean<T> getBean()
Description copied from class:AbstractProducerReturns aBeanthis producer is associated with or null if no such bean exists.- Overrides:
getBeanin classBeanInjectionTarget<T>
-
initInstantiator
protected Instantiator<T> initInstantiator(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager, Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints)
Description copied from class:BasicInjectionTargetReturns an instantiator that will be used to create a new instance of a given component. If the instantiator uses a constructor with injection points, the implementation of theBasicInjectionTarget.initInstantiator(EnhancedAnnotatedType, Bean, BeanManagerImpl, Set)method is supposed to register all these injection points within the injectionPoints set passed in as a parameter.- Overrides:
initInstantiatorin classBasicInjectionTarget<T>
-
initializeAfterBeanDiscovery
public void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
- Overrides:
initializeAfterBeanDiscoveryin classBeanInjectionTarget<T>
-
buildInterceptionModel
protected void buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator)
- Overrides:
buildInterceptionModelin classBeanInjectionTarget<T>
-
produce
public T produce(javax.enterprise.context.spi.CreationalContext<T> ctx)
- Specified by:
producein interfacejavax.enterprise.inject.spi.Producer<T>- Overrides:
producein classBeanInjectionTarget<T>
-
-