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-1441
beanManager
Constructor and Description |
---|
NonProducibleInjectionTarget(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkType(EnhancedAnnotatedType<T> type) |
boolean |
hasDecorators() |
boolean |
hasInterceptors() |
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, createDefault, createNonCdiInterceptor, dispose, getAnnotated, getAnnotatedType, getBean, getBeanManager, getInjectionPoints, getInjector, getInstantiator, getLifecycleCallbackInvoker, getType, initializeAfterBeanDiscovery, inject, postConstruct, preDestroy, setInstantiator, toString
checkDelegateInjectionPoints, equals, hashCode
public NonProducibleInjectionTarget(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)
BasicInjectionTarget
BasicInjectionTarget.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 © 2016. All rights reserved.