T - public class NonProducibleInjectionTarget<T> extends BasicInjectionTarget<T>
InjectionTarget for classes that do not fulfill bean class requirements (e.g. are abstract or non-static inner classes).
Instances of these class can be injected using this implementation. If the application attempts to produce(CreationalContext) a new instance of the
class, CreationException is thrown.WELD-1441beanManager| Modifier and Type | Method and Description |
|---|---|
static <T> NonProducibleInjectionTarget<T> |
create(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
static <T> NonProducibleInjectionTarget<T> |
create(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
Injector<T> injector,
LifecycleCallbackInvoker<T> invoker,
BeanManagerImpl beanManager) |
boolean |
hasDecorators() |
boolean |
hasInterceptors() |
protected void |
checkType(EnhancedAnnotatedType<T> type) |
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.
|
T |
produce(javax.enterprise.context.spi.CreationalContext<T> ctx) |
create, createDefault, createNonCdiInterceptor, dispose, getAnnotated, getAnnotatedType, getBean, getBeanManager, getInjectionPoints, getInjector, getInstantiator, getLifecycleCallbackInvoker, getType, initializeAfterBeanDiscovery, inject, postConstruct, preDestroy, setInstantiator, toStringequals, hashCode, checkDelegateInjectionPointspublic static <T> NonProducibleInjectionTarget<T> create(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
public static <T> NonProducibleInjectionTarget<T> create(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, Injector<T> injector, LifecycleCallbackInvoker<T> invoker, 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)
BasicInjectionTargetBasicInjectionTarget.initInstantiator(EnhancedAnnotatedType, Bean, BeanManagerImpl, Set) method is supposed to register all these
injection points within the injectionPoints set passed in as a parameter.initInstantiator in class BasicInjectionTarget<T>public T produce(javax.enterprise.context.spi.CreationalContext<T> ctx)
produce in interface javax.enterprise.inject.spi.Producer<T>produce in class BasicInjectionTarget<T>protected void checkType(EnhancedAnnotatedType<T> type)
checkType in class BasicInjectionTarget<T>public boolean hasInterceptors()
hasInterceptors in class BasicInjectionTarget<T>public boolean hasDecorators()
hasDecorators in class BasicInjectionTarget<T>Copyright © 2017. All rights reserved.