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 |
|---|---|
javax.enterprise.inject.spi.AnnotatedMember<? super X> |
getAnnotated() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
protected void |
checkProducerMethod(EnhancedAnnotatedMethod<T,? super X> method)
Validates the producer method
|
protected T |
produce(Object receiver,
javax.enterprise.context.spi.CreationalContext<T> ctx) |
protected DefinitionException |
producerWithInvalidTypeVariable(javax.enterprise.inject.spi.AnnotatedMember<?> member) |
protected DefinitionException |
producerWithInvalidWildcard(javax.enterprise.inject.spi.AnnotatedMember<?> member) |
protected DefinitionException |
producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(javax.enterprise.inject.spi.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<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
protected T produce(Object receiver, javax.enterprise.context.spi.CreationalContext<T> ctx)
produce in class AbstractMemberProducer<X,T>public javax.enterprise.inject.spi.AnnotatedMember<? super X> getAnnotated()
getAnnotated in class AbstractMemberProducer<X,T>protected DefinitionException producerWithInvalidTypeVariable(javax.enterprise.inject.spi.AnnotatedMember<?> member)
producerWithInvalidTypeVariable in class AbstractMemberProducer<X,T>protected DefinitionException producerWithInvalidWildcard(javax.enterprise.inject.spi.AnnotatedMember<?> member)
producerWithInvalidWildcard in class AbstractMemberProducer<X,T>protected DefinitionException producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(javax.enterprise.inject.spi.AnnotatedMember<?> member)
producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent in class AbstractMemberProducer<X,T>Copyright © 2017. All rights reserved.