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
- Author:
- Pete Muir, Jozef Hartinger
-
Field Summary
Fields inherited from class org.jboss.weld.injection.producer.BasicInjectionTarget
beanManager -
Constructor Summary
ConstructorsConstructorDescriptionBeanInjectionTarget(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
Modifier and TypeMethodDescriptionprotected voidbuildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator) protected voidcheckDecoratedMethods(EnhancedAnnotatedType<T> type, List<jakarta.enterprise.inject.spi.Decorator<?>> decorators) protected voidstatic <T> BeanInjectionTarget<T>createDefault(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager) voidstatic <T> BeanInjectionTarget<T>forCdiInterceptor(EnhancedAnnotatedType<T> type, jakarta.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager) jakarta.enterprise.inject.spi.Bean<T>getBean()Returns aBeanthis producer is associated with or null if no such bean exists.voidinitializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType) protected voidinitializeInterceptionModel(EnhancedAnnotatedType<T> annotatedType) protected booleanprotected booleanprotected booleanprotected voidsetupConstructorInterceptionInstantiator(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, toStringMethods inherited from class org.jboss.weld.injection.producer.AbstractProducer
checkDelegateInjectionPoints, equals, hashCode
-
Constructor Details
-
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 Details
-
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
- Specified by:
disposein interfacejakarta.enterprise.inject.spi.Producer<T>- Overrides:
disposein classBasicInjectionTarget<T>
-
isInterceptor
protected boolean isInterceptor() -
isDecorator
protected boolean isDecorator() -
isInterceptionCandidate
protected boolean isInterceptionCandidate() -
initializeInterceptionModel
-
buildInterceptionModel
protected void buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator) -
initializeAfterBeanDiscovery
- Overrides:
initializeAfterBeanDiscoveryin classBasicInjectionTarget<T>
-
setupConstructorInterceptionInstantiator
-
checkNoArgsConstructor
-
checkDecoratedMethods
protected void checkDecoratedMethods(EnhancedAnnotatedType<T> type, List<jakarta.enterprise.inject.spi.Decorator<?>> decorators) -
produce
- Specified by:
producein interfacejakarta.enterprise.inject.spi.Producer<T>- Overrides:
producein classBasicInjectionTarget<T>
-
getBean
Description copied from class:AbstractProducerReturns aBeanthis producer is associated with or null if no such bean exists.- Overrides:
getBeanin classBasicInjectionTarget<T>
-