public abstract class ProducerFieldProducer<X,T> extends AbstractMemberProducer<X,T>
Producer
implementation for producer fields.Constructor and Description |
---|
ProducerFieldProducer(EnhancedAnnotatedField<T,? super X> enhancedField,
DisposalMethod<?,?> disposalMethod) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkProducerField(EnhancedAnnotatedField<T,? super X> enhancedField) |
abstract AnnotatedField<? super X> |
getAnnotated() |
Set<InjectionPoint> |
getInjectionPoints()
Returns the set of all
InjectionPoints . |
T |
produce(Object receiver,
CreationalContext<T> creationalContext) |
protected DefinitionException |
producerWithInvalidTypeVariable(AnnotatedMember<?> member) |
protected DefinitionException |
producerWithInvalidWildcard(AnnotatedMember<?> member) |
protected DefinitionException |
producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(AnnotatedMember<?> member) |
String |
toString() |
checkDeclaringBean, checkProducerReturnType, dispose, getBean, getBeanManager, getDeclaringBean, getDisposalMethod, getReceiver, isTypeSerializable, produce
checkDelegateInjectionPoints, equals, hashCode
public ProducerFieldProducer(EnhancedAnnotatedField<T,? super X> enhancedField, DisposalMethod<?,?> disposalMethod)
protected void checkProducerField(EnhancedAnnotatedField<T,? super X> enhancedField)
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.
public abstract AnnotatedField<? super X> getAnnotated()
getAnnotated
in class AbstractMemberProducer<X,T>
public T produce(Object receiver, CreationalContext<T> creationalContext)
produce
in class AbstractMemberProducer<X,T>
public String toString()
toString
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.