Class BeanInjectionTarget<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>
-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.InjectionTarget<T>
,jakarta.enterprise.inject.spi.Producer<T>
,org.jboss.weld.manager.api.WeldInjectionTarget<T>
- Direct Known Subclasses:
DecoratorInjectionTarget
public class BeanInjectionTarget<T> extends BasicInjectionTarget<T>
- Author:
- Pete Muir, Jozef Hartinger
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.injection.producer.BasicInjectionTarget
beanManager
-
-
Constructor Summary
Constructors Constructor Description BeanInjectionTarget(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
BeanInjectionTarget(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager, Injector<T> injector, LifecycleCallbackInvoker<T> invoker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator)
protected void
checkDecoratedMethods(EnhancedAnnotatedType<T> type, List<jakarta.enterprise.inject.spi.Decorator<?>> decorators)
protected void
checkNoArgsConstructor(EnhancedAnnotatedType<T> type)
static <T> BeanInjectionTarget<T>
createDefault(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
void
dispose(T instance)
static <T> BeanInjectionTarget<T>
forCdiInterceptor(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager)
jakarta.enterprise.inject.spi.Bean<T>
getBean()
Returns aBean
this producer is associated with or null if no such bean exists.void
initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
protected void
initializeInterceptionModel(EnhancedAnnotatedType<T> annotatedType)
protected boolean
isDecorator()
protected boolean
isInterceptionCandidate()
protected boolean
isInterceptor()
T
produce(jakarta.enterprise.context.spi.CreationalContext<T> ctx)
protected void
setupConstructorInterceptionInstantiator(InterceptionModel interceptionModel)
-
Methods inherited from class org.jboss.weld.injection.producer.BasicInjectionTarget
checkType, create, createDefault, createNonCdiInterceptor, getAnnotated, getAnnotatedType, getBeanManager, getInjectionPoints, getInjector, getInstantiator, getLifecycleCallbackInvoker, getType, hasDecorators, hasInterceptors, initInstantiator, inject, postConstruct, preDestroy, setInstantiator, toString
-
Methods inherited from class org.jboss.weld.injection.producer.AbstractProducer
checkDelegateInjectionPoints, equals, hashCode
-
-
-
-
Constructor Detail
-
BeanInjectionTarget
public BeanInjectionTarget(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager, Injector<T> injector, LifecycleCallbackInvoker<T> invoker)
-
BeanInjectionTarget
public BeanInjectionTarget(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
-
-
Method Detail
-
createDefault
public static <T> BeanInjectionTarget<T> createDefault(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
-
forCdiInterceptor
public static <T> BeanInjectionTarget<T> forCdiInterceptor(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager)
-
dispose
public void dispose(T instance)
- Specified by:
dispose
in interfacejakarta.enterprise.inject.spi.Producer<T>
- Overrides:
dispose
in classBasicInjectionTarget<T>
-
isInterceptor
protected boolean isInterceptor()
-
isDecorator
protected boolean isDecorator()
-
isInterceptionCandidate
protected boolean isInterceptionCandidate()
-
initializeInterceptionModel
protected void initializeInterceptionModel(EnhancedAnnotatedType<T> annotatedType)
-
buildInterceptionModel
protected void buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator)
-
initializeAfterBeanDiscovery
public void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
- Overrides:
initializeAfterBeanDiscovery
in classBasicInjectionTarget<T>
-
setupConstructorInterceptionInstantiator
protected void setupConstructorInterceptionInstantiator(InterceptionModel interceptionModel)
-
checkNoArgsConstructor
protected void checkNoArgsConstructor(EnhancedAnnotatedType<T> type)
-
checkDecoratedMethods
protected void checkDecoratedMethods(EnhancedAnnotatedType<T> type, List<jakarta.enterprise.inject.spi.Decorator<?>> decorators)
-
produce
public T produce(jakarta.enterprise.context.spi.CreationalContext<T> ctx)
- Specified by:
produce
in interfacejakarta.enterprise.inject.spi.Producer<T>
- Overrides:
produce
in classBasicInjectionTarget<T>
-
getBean
public jakarta.enterprise.inject.spi.Bean<T> getBean()
Description copied from class:AbstractProducer
Returns aBean
this producer is associated with or null if no such bean exists.- Overrides:
getBean
in classBasicInjectionTarget<T>
-
-