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

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

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


Method Summary
 T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
protected  javax.enterprise.inject.spi.Bean<T> delegate()
          All calls to this Bean instance are forwarded to the delegate unless overridden.
 void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 boolean equals(Object obj)
           
 Class<?> getBeanClass()
           
protected  javax.enterprise.inject.spi.BeanManager getBeanManager()
           
protected  javax.enterprise.inject.spi.Bean<?> getDeclaringBean()
           
protected  Annotation[] getDeclaringBeanQualifiers()
           
protected  Type getDeclaringBeanType()
           
 String getId()
           
 Set<Annotation> getQualifiers()
           
protected  Object getReceiver(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 Class<? extends Annotation> getScope()
           
protected  T getValue(Object receiver, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 int hashCode()
           
 boolean isAlternative()
           
 
Methods inherited from class org.jboss.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,
                     javax.enterprise.context.spi.CreationalContext<T> creationalContext)

destroy

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

getDeclaringBeanQualifiers

protected Annotation[] getDeclaringBeanQualifiers()

getDeclaringBeanType

protected Type getDeclaringBeanType()

create

public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Specified by:
create in interface javax.enterprise.context.spi.Contextual<T>
Overrides:
create in class ForwardingBean<T>

getReceiver

protected Object getReceiver(javax.enterprise.context.spi.CreationalContext<T> creationalContext)

getDeclaringBean

protected javax.enterprise.inject.spi.Bean<?> getDeclaringBean()

getScope

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

getBeanManager

protected javax.enterprise.inject.spi.BeanManager getBeanManager()

delegate

protected javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.Bean<T>
Overrides:
getQualifiers in class ForwardingBean<T>

getId

public String getId()
Specified by:
getId in interface javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.Bean<T>
Overrides:
getBeanClass in class ForwardingBean<T>

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
isAlternative in class ForwardingBean<T>


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