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() |
void |
postConstruct(T instance) |
void |
preDestroy(T instance) |
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, setInstantiator, toString
checkDelegateInjectionPoints, equals, hashCode
public 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 postConstruct(T instance)
postConstruct
in interface javax.enterprise.inject.spi.InjectionTarget<T>
postConstruct
in class BasicInjectionTarget<T>
public void preDestroy(T instance)
preDestroy
in interface javax.enterprise.inject.spi.InjectionTarget<T>
preDestroy
in class BasicInjectionTarget<T>
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()
AbstractProducer
Bean
this producer is associated with or null if no such bean exists.getBean
in class BasicInjectionTarget<T>
Copyright © 2016. All rights reserved.