public class BasicInjectionTarget<T> extends AbstractProducer<T> implements WeldInjectionTarget<T>
InjectionTarget implementation. The implementation supports:
| Modifier and Type | Field and Description |
|---|---|
protected BeanManagerImpl |
beanManager |
| Modifier | Constructor and Description |
|---|---|
protected |
BasicInjectionTarget(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager,
Injector<T> injector,
LifecycleCallbackInvoker<T> invoker) |
protected |
BasicInjectionTarget(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager,
Injector<T> injector,
LifecycleCallbackInvoker<T> invoker,
Instantiator<T> instantiator) |
protected |
BasicInjectionTarget(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager,
Instantiator<T> instantiator) |
equals, hashCode, checkDelegateInjectionPointsprotected final BeanManagerImpl beanManager
protected BasicInjectionTarget(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Injector<T> injector, LifecycleCallbackInvoker<T> invoker)
protected BasicInjectionTarget(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Injector<T> injector, LifecycleCallbackInvoker<T> invoker, Instantiator<T> instantiator)
protected BasicInjectionTarget(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Instantiator<T> instantiator)
public static <T> BasicInjectionTarget<T> create(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Injector<T> injector, LifecycleCallbackInvoker<T> invoker)
public static <T> BasicInjectionTarget<T> createDefault(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager)
public static <T> BasicInjectionTarget<T> createDefault(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Instantiator<T> instantiator)
public static <T> BasicInjectionTarget<T> createNonCdiInterceptor(EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
InjectionTarget for interceptors which do not have associated Interceptor. These interceptors are a
result of using Interceptors annotation directly on the target class.protected void checkType(EnhancedAnnotatedType<T> type)
public void inject(T instance, CreationalContext<T> ctx)
inject in interface InjectionTarget<T>public void postConstruct(T instance)
postConstruct in interface InjectionTarget<T>public void preDestroy(T instance)
preDestroy in interface InjectionTarget<T>public Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Producer<T>protected SlimAnnotatedType<T> getType()
public BeanManagerImpl getBeanManager()
public Instantiator<T> getInstantiator()
public void setInstantiator(Instantiator<T> instantiator)
public boolean hasInterceptors()
public boolean hasDecorators()
protected void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
protected Instantiator<T> initInstantiator(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager, Set<InjectionPoint> injectionPoints)
initInstantiator(EnhancedAnnotatedType, Bean, BeanManagerImpl, Set) method is supposed to register all these
injection points within the injectionPoints set passed in as a parameter.public AnnotatedType<T> getAnnotated()
getAnnotated in class AbstractProducer<T>public AnnotatedType<T> getAnnotatedType()
getAnnotatedType in interface WeldInjectionTarget<T>public LifecycleCallbackInvoker<T> getLifecycleCallbackInvoker()
public Bean<T> getBean()
AbstractProducerBean this producer is associated with or null if no such bean exists.getBean in class AbstractProducer<T>Copyright © 2016. All Rights Reserved.