public class BeanInjectionTarget<T> extends BasicInjectionTarget<T>
beanManager| Constructor and Description |
|---|
BeanInjectionTarget(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
BeanInjectionTarget(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager,
Injector<T> injector,
LifecycleCallbackInvoker<T> invoker) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType,
AbstractInstantiator<T> instantiator) |
protected void |
checkDecoratedMethods(EnhancedAnnotatedType<T> type,
List<javax.enterprise.inject.spi.Decorator<?>> decorators) |
protected void |
checkNoArgsConstructor(EnhancedAnnotatedType<T> type) |
static <T> BeanInjectionTarget<T> |
createDefault(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
void |
dispose(T instance) |
static <T> BeanInjectionTarget<T> |
forCdiInterceptor(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl manager) |
javax.enterprise.inject.spi.Bean<T> |
getBean()
Returns a
Bean 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(javax.enterprise.context.spi.CreationalContext<T> ctx) |
protected void |
setupConstructorInterceptionInstantiator(InterceptionModel interceptionModel) |
checkType, create, createDefault, createNonCdiInterceptor, getAnnotated, getAnnotatedType, getBeanManager, getInjectionPoints, getInjector, getInstantiator, getLifecycleCallbackInvoker, getType, hasDecorators, hasInterceptors, initInstantiator, inject, postConstruct, preDestroy, setInstantiator, toStringcheckDelegateInjectionPoints, equals, hashCodepublic BeanInjectionTarget(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager, Injector<T> injector, LifecycleCallbackInvoker<T> invoker)
public BeanInjectionTarget(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
public static <T> BeanInjectionTarget<T> createDefault(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
public static <T> BeanInjectionTarget<T> forCdiInterceptor(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl manager)
public void dispose(T instance)
dispose in interface javax.enterprise.inject.spi.Producer<T>dispose in class BasicInjectionTarget<T>protected boolean isInterceptor()
protected boolean isDecorator()
protected boolean isInterceptionCandidate()
protected void initializeInterceptionModel(EnhancedAnnotatedType<T> annotatedType)
protected void buildInterceptionModel(EnhancedAnnotatedType<T> annotatedType, AbstractInstantiator<T> instantiator)
public void initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType)
initializeAfterBeanDiscovery in class BasicInjectionTarget<T>protected void setupConstructorInterceptionInstantiator(InterceptionModel interceptionModel)
protected void checkNoArgsConstructor(EnhancedAnnotatedType<T> type)
protected void checkDecoratedMethods(EnhancedAnnotatedType<T> type, List<javax.enterprise.inject.spi.Decorator<?>> decorators)
public T produce(javax.enterprise.context.spi.CreationalContext<T> ctx)
produce in interface javax.enterprise.inject.spi.Producer<T>produce in class BasicInjectionTarget<T>public javax.enterprise.inject.spi.Bean<T> getBean()
AbstractProducerBean this producer is associated with or null if no such bean exists.getBean in class BasicInjectionTarget<T>Copyright © 2017. All rights reserved.