public abstract class ProducerMethodProducer<X,T> extends AbstractMemberProducer<X,T>
Producer implementation for producer methods.| Constructor and Description |
|---|
ProducerMethodProducer(EnhancedAnnotatedMethod<T,? super X> enhancedAnnotatedMethod,
DisposalMethod<?,?> disposalMethod) |
| Modifier and Type | Method and Description |
|---|---|
AnnotatedMember<? super X> |
getAnnotated() |
Set<InjectionPoint> |
getInjectionPoints()
Returns the set of all
InjectionPoints. |
protected void |
checkProducerMethod(EnhancedAnnotatedMethod<T,? super X> method)
Validates the producer method
|
protected T |
produce(Object receiver,
CreationalContext<T> ctx) |
protected DefinitionException |
producerWithInvalidTypeVariable(AnnotatedMember<?> member) |
protected DefinitionException |
producerWithInvalidWildcard(AnnotatedMember<?> member) |
protected DefinitionException |
producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(AnnotatedMember<?> member) |
dispose, getBean, getBeanManager, getDeclaringBean, getDisposalMethod, getReceiver, checkDeclaringBean, checkProducerReturnType, isTypeSerializable, produce, toStringequals, hashCode, checkDelegateInjectionPointspublic ProducerMethodProducer(EnhancedAnnotatedMethod<T,? super X> enhancedAnnotatedMethod, DisposalMethod<?,?> disposalMethod)
protected void checkProducerMethod(EnhancedAnnotatedMethod<T,? super X> method)
public Set<InjectionPoint> getInjectionPoints()
Producer
Returns the set of all InjectionPoints. If the Producer represents a class, then this returns returns the
set of InjectionPoint objects representing all injected fields, bean constructor parameters and initializer
method parameters. For a producer method, this returns the set of InjectionPoint objects representing all
parameters of the producer method.
protected T produce(Object receiver, CreationalContext<T> ctx)
produce in class AbstractMemberProducer<X,T>public AnnotatedMember<? super X> getAnnotated()
getAnnotated in class AbstractMemberProducer<X,T>protected DefinitionException producerWithInvalidTypeVariable(AnnotatedMember<?> member)
producerWithInvalidTypeVariable in class AbstractMemberProducer<X,T>protected DefinitionException producerWithInvalidWildcard(AnnotatedMember<?> member)
producerWithInvalidWildcard in class AbstractMemberProducer<X,T>protected DefinitionException producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(AnnotatedMember<?> member)
producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent in class AbstractMemberProducer<X,T>Copyright © 2015. All Rights Reserved.