public class BasicInjectionTarget<T> extends AbstractProducer<T> implements javax.enterprise.inject.spi.InjectionTarget<T>
InjectionTarget implementation. The implementation supports:
| Modifier and Type | Field and Description |
|---|---|
protected BeanManagerImpl |
beanManager |
| Constructor and Description |
|---|
BasicInjectionTarget(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
BasicInjectionTarget(EnhancedAnnotatedType<T> type,
BeanManagerImpl beanManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkType(EnhancedAnnotatedType<T> type) |
void |
dispose(T instance) |
javax.enterprise.inject.spi.AnnotatedType<T> |
getAnnotated() |
javax.enterprise.inject.spi.Bean<T> |
getBean()
Returns a
Bean this producer is associated with or null if no such bean exists. |
protected BeanManagerImpl |
getBeanManager() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
Injector<T> |
getInjector() |
Instantiator<T> |
getInstantiator() |
LifecycleCallbackInvoker<T> |
getLifecycleCallbackInvoker() |
protected javax.enterprise.inject.spi.AnnotatedType<T> |
getType() |
boolean |
hasDecorators() |
boolean |
hasInterceptors() |
protected void |
initializeAfterBeanDiscovery(EnhancedAnnotatedType<T> annotatedType) |
protected Injector<T> |
initInjector(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
protected Instantiator<T> |
initInstantiator(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager,
Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints)
Returns an instantiator that will be used to create a new instance of a given component.
|
protected LifecycleCallbackInvoker<T> |
initInvoker(EnhancedAnnotatedType<T> type) |
void |
inject(T instance,
javax.enterprise.context.spi.CreationalContext<T> ctx) |
void |
postConstruct(T instance) |
void |
preDestroy(T instance) |
T |
produce(javax.enterprise.context.spi.CreationalContext<T> ctx) |
void |
setInstantiator(Instantiator<T> instantiator) |
String |
toString() |
checkDelegateInjectionPoints, equals, hashCodeprotected final BeanManagerImpl beanManager
public BasicInjectionTarget(EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
public BasicInjectionTarget(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
protected void checkType(EnhancedAnnotatedType<T> type)
public T produce(javax.enterprise.context.spi.CreationalContext<T> ctx)
produce in interface javax.enterprise.inject.spi.Producer<T>public void inject(T instance, javax.enterprise.context.spi.CreationalContext<T> ctx)
inject in interface javax.enterprise.inject.spi.InjectionTarget<T>public void postConstruct(T instance)
postConstruct in interface javax.enterprise.inject.spi.InjectionTarget<T>public void preDestroy(T instance)
preDestroy in interface javax.enterprise.inject.spi.InjectionTarget<T>public void dispose(T instance)
dispose in interface javax.enterprise.inject.spi.Producer<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints in interface javax.enterprise.inject.spi.Producer<T>protected javax.enterprise.inject.spi.AnnotatedType<T> getType()
protected 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, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager, Set<javax.enterprise.inject.spi.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.protected Injector<T> initInjector(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
protected LifecycleCallbackInvoker<T> initInvoker(EnhancedAnnotatedType<T> type)
public javax.enterprise.inject.spi.AnnotatedType<T> getAnnotated()
getAnnotated in class AbstractProducer<T>public LifecycleCallbackInvoker<T> getLifecycleCallbackInvoker()
public javax.enterprise.inject.spi.Bean<T> getBean()
AbstractProducerBean this producer is associated with or null if no such bean exists.getBean in class AbstractProducer<T>Copyright © 2013 Seam Framework. All rights reserved.