org.jboss.weld.bean
Class AbstractReceiverBean<X,T,S extends java.lang.reflect.Member>

java.lang.Object
  extended by org.jboss.weld.bean.RIBean<T>
      extended by org.jboss.weld.bean.AbstractBean<T,S>
          extended by org.jboss.weld.bean.AbstractReceiverBean<X,T,S>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.PassivationCapable
Direct Known Subclasses:
AbstractProducerBean, DisposalMethod

public abstract class AbstractReceiverBean<X,T,S extends java.lang.reflect.Member>
extends AbstractBean<T,S>

Author:
pmuir

Field Summary
 
Fields inherited from class org.jboss.weld.bean.AbstractBean
bindings, manager, name, scopeType, type, types
 
Fields inherited from class org.jboss.weld.bean.RIBean
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
 
Constructor Summary
AbstractReceiverBean(java.lang.String idSuffix, AbstractClassBean<X> declaringBean, BeanManagerImpl manager)
           
 
Method Summary
abstract  WeldMember<T,?,S> getAnnotatedItem()
          Returns the annotated time the bean represents
 AbstractClassBean<X> getDeclaringBean()
          Returns the declaring bean
protected  java.lang.Object getReceiver(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Gets the receiver of the product
 void initialize(BeanDeployerEnvironment environment)
          Initializes the bean and its metadata
protected  void initPolicy()
           
 boolean isAlternative()
           
 
Methods inherited from class org.jboss.weld.bean.AbstractBean
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, getAnnotatedInjectionPoints, getDefaultName, getDelegateInjectionPoints, getMergedStereotypes, getName, getQualifiers, getScope, getSpecializedBean, getStereotypes, getType, getTypes, initBindings, initDefaultBindings, initName, initPrimitive, initProxyable, initScopeType, initScopeTypeFromStereotype, initSerializable, initStereotypes, initTypes, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyable, isSerializable, isSpecializing, postSpecialize, preSpecialize, specialize
 
Methods inherited from class org.jboss.weld.bean.RIBean
equals, getBeanClass, getDescription, getId, getInjectionPoints, getManager, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Constructor Detail

AbstractReceiverBean

public AbstractReceiverBean(java.lang.String idSuffix,
                            AbstractClassBean<X> declaringBean,
                            BeanManagerImpl manager)
Method Detail

initialize

public void initialize(BeanDeployerEnvironment environment)
Description copied from class: AbstractBean
Initializes the bean and its metadata

Overrides:
initialize in class AbstractBean<T,S extends java.lang.reflect.Member>

getReceiver

protected java.lang.Object getReceiver(javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Gets the receiver of the product

Returns:
The receiver

getDeclaringBean

public AbstractClassBean<X> getDeclaringBean()
Returns the declaring bean

Returns:
The bean representation

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
isAlternative in class AbstractBean<T,S extends java.lang.reflect.Member>

initPolicy

protected void initPolicy()
Overrides:
initPolicy in class AbstractBean<T,S extends java.lang.reflect.Member>

getAnnotatedItem

public abstract WeldMember<T,?,S> getAnnotatedItem()
Description copied from class: AbstractBean
Returns the annotated time the bean represents

Specified by:
getAnnotatedItem in class AbstractBean<T,S extends java.lang.reflect.Member>
Returns:
The annotated item


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