org.jboss.seam.solder.bean.generic
Class GenericProducerMethod<T,X>

java.lang.Object
  extended by org.jboss.seam.solder.bean.ForwardingBean<T>
      extended by org.jboss.seam.solder.bean.generic.GenericProducerMethod<T,X>
All Implemented Interfaces:
Contextual<T>, Bean<T>, PassivationCapable

public class GenericProducerMethod<T,X>
extends ForwardingBean<T>


Method Summary
 T create(CreationalContext<T> creationalContext)
           
protected  Bean<T> delegate()
          All calls to this Bean instance are forwarded to the delegate unless overridden.
 void destroy(T instance, CreationalContext<T> creationalContext)
           
 boolean equals(Object obj)
           
 Class<?> getBeanClass()
           
protected  BeanManager getBeanManager()
           
protected  Bean<?> getDeclaringBean()
           
protected  Annotation[] getDeclaringBeanQualifiers()
           
protected  Type getDeclaringBeanType()
           
 String getId()
           
 Set<Annotation> getQualifiers()
           
protected  Object getReceiver(CreationalContext<T> creationalContext)
           
 Class<? extends Annotation> getScope()
           
protected  T getValue(Object receiver, CreationalContext<T> creationalContext)
           
 int hashCode()
           
 boolean isAlternative()
           
 
Methods inherited from class org.jboss.seam.solder.bean.ForwardingBean
getInjectionPoints, getName, getStereotypes, getTypes, isNullable, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getValue

protected T getValue(Object receiver,
                     CreationalContext<T> creationalContext)

destroy

public void destroy(T instance,
                    CreationalContext<T> creationalContext)
Specified by:
destroy in interface Contextual<T>
Overrides:
destroy in class ForwardingBean<T>

getDeclaringBeanQualifiers

protected Annotation[] getDeclaringBeanQualifiers()

getDeclaringBeanType

protected Type getDeclaringBeanType()

create

public T create(CreationalContext<T> creationalContext)
Specified by:
create in interface Contextual<T>
Overrides:
create in class ForwardingBean<T>

getReceiver

protected Object getReceiver(CreationalContext<T> creationalContext)

getDeclaringBean

protected Bean<?> getDeclaringBean()

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface Bean<T>
Overrides:
getScope in class ForwardingBean<T>

getBeanManager

protected BeanManager getBeanManager()

delegate

protected Bean<T> delegate()
Description copied from class: ForwardingBean
All calls to this Bean instance are forwarded to the delegate unless overridden.

Specified by:
delegate in class ForwardingBean<T>
Returns:
the delegate Bean

getQualifiers

public Set<Annotation> getQualifiers()
Specified by:
getQualifiers in interface Bean<T>
Overrides:
getQualifiers in class ForwardingBean<T>

getId

public String getId()
Specified by:
getId in interface PassivationCapable

equals

public boolean equals(Object obj)
Overrides:
equals in class ForwardingBean<T>

hashCode

public int hashCode()
Overrides:
hashCode in class ForwardingBean<T>

getBeanClass

public Class<?> getBeanClass()
Specified by:
getBeanClass in interface Bean<T>
Overrides:
getBeanClass in class ForwardingBean<T>

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in interface Bean<T>
Overrides:
isAlternative in class ForwardingBean<T>


Copyright © 2008-2011 Seam Framework. All Rights Reserved.