public abstract class AbstractMemberProducer<X,T> extends AbstractProducer<T>
Producers backing producer fields and producer methods.| Constructor and Description |
|---|
AbstractMemberProducer(EnhancedAnnotatedMember<T,? super X,? extends Member> enhancedMember,
DisposalMethod<?,?> disposalMethod) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDeclaringBean() |
protected void |
checkProducerReturnType(EnhancedAnnotatedMember<T,? super X,? extends Member> enhancedMember)
Validates the producer method
|
void |
dispose(T instance) |
abstract AnnotatedMember<? super X> |
getAnnotated() |
abstract Bean<T> |
getBean()
Returns a
Bean this producer is associated with or null if no such bean exists. |
abstract BeanManagerImpl |
getBeanManager() |
abstract Bean<X> |
getDeclaringBean() |
DisposalMethod<?,?> |
getDisposalMethod() |
protected Object |
getReceiver(CreationalContext<?> productCreationalContext,
CreationalContext<?> receiverCreationalContext)
Gets the receiver of the product.
|
protected boolean |
isTypeSerializable(Object object) |
T |
produce(CreationalContext<T> ctx) |
protected abstract T |
produce(Object receiver,
CreationalContext<T> ctx) |
protected abstract DefinitionException |
producerCannotHaveWildcardBeanType(Object member) |
protected abstract DefinitionException |
producerWithTypeVariableBeanTypeMustBeDependent(Object member) |
String |
toString() |
checkDelegateInjectionPoints, equals, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetInjectionPointspublic AbstractMemberProducer(EnhancedAnnotatedMember<T,? super X,? extends Member> enhancedMember, DisposalMethod<?,?> disposalMethod)
protected void checkDeclaringBean()
protected void checkProducerReturnType(EnhancedAnnotatedMember<T,? super X,? extends Member> enhancedMember)
protected abstract DefinitionException producerCannotHaveWildcardBeanType(Object member)
protected abstract DefinitionException producerWithTypeVariableBeanTypeMustBeDependent(Object member)
protected Object getReceiver(CreationalContext<?> productCreationalContext, CreationalContext<?> receiverCreationalContext)
productCreationalContext - the creational context of the produced instancereceiverCreationalContext - the creational context of the receiverpublic void dispose(T instance)
public T produce(CreationalContext<T> ctx)
public DisposalMethod<?,?> getDisposalMethod()
protected boolean isTypeSerializable(Object object)
public abstract BeanManagerImpl getBeanManager()
public abstract Bean<T> getBean()
AbstractProducerBean this producer is associated with or null if no such bean exists.getBean in class AbstractProducer<T>public abstract AnnotatedMember<? super X> getAnnotated()
getAnnotated in class AbstractProducer<T>protected abstract T produce(Object receiver, CreationalContext<T> ctx)
Copyright © 2014 Seam Framework. All Rights Reserved.