org.jboss.weld.bean
Class RIBean<T>

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

public abstract class RIBean<T>
extends Object
implements javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.PassivationCapable

Abstract base class with functions specific to RI built-in beans

Author:
Pete Muir

Field Summary
static String BEAN_ID_PREFIX
           
static String BEAN_ID_SEPARATOR
           
 
Constructor Summary
protected RIBean(String idSuffix, BeanManagerImpl beanManager)
           
 
Method Summary
abstract  void cleanupAfterBoot()
          This method is called after the container is started allowing the bean to release any resources that are only required at boot time
 boolean equals(Object obj)
           
 Class<?> getBeanClass()
           
protected  BeanManagerImpl getBeanManager()
           
 String getId()
           
 Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
           
 Set<QualifierInstance> getQualifierInstances()
           
abstract  RIBean<?> getSpecializedBean()
           
abstract  Class<T> getType()
           
abstract  Set<WeldInjectionPoint<?,?>> getWeldInjectionPoints()
           
 int hashCode()
           
abstract  void initialize(BeanDeployerEnvironment environment)
           
abstract  void initializeAfterBeanDiscovery()
          In particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g.
 boolean isDependent()
           
abstract  boolean isPassivationCapableBean()
           
abstract  boolean isPassivationCapableDependency()
           
abstract  boolean isPrimitive()
           
abstract  boolean isProxyable()
           
abstract  boolean isProxyRequired()
           
abstract  boolean isSpecializing()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Field Detail

BEAN_ID_PREFIX

public static final String BEAN_ID_PREFIX

BEAN_ID_SEPARATOR

public static final String BEAN_ID_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

RIBean

protected RIBean(String idSuffix,
                 BeanManagerImpl beanManager)
Method Detail

getBeanManager

protected BeanManagerImpl getBeanManager()

getType

public abstract Class<T> getType()

getBeanClass

public Class<?> getBeanClass()
Specified by:
getBeanClass in interface javax.enterprise.inject.spi.Bean<T>

initialize

public abstract void initialize(BeanDeployerEnvironment environment)

cleanupAfterBoot

public abstract void cleanupAfterBoot()
This method is called after the container is started allowing the bean to release any resources that are only required at boot time


initializeAfterBeanDiscovery

public abstract void initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g. for initializing decorators taking into account the possibility of having custom decorators which are deployed through portable extensions)

Parameters:
environment -

isSpecializing

public abstract boolean isSpecializing()

isDependent

public boolean isDependent()

isProxyable

public abstract boolean isProxyable()

isPassivationCapableBean

public abstract boolean isPassivationCapableBean()

isPassivationCapableDependency

public abstract boolean isPassivationCapableDependency()

isProxyRequired

public abstract boolean isProxyRequired()

isPrimitive

public abstract boolean isPrimitive()

getWeldInjectionPoints

public abstract Set<WeldInjectionPoint<?,?>> getWeldInjectionPoints()

getInjectionPoints

public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
Specified by:
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>

getSpecializedBean

public abstract RIBean<?> getSpecializedBean()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getId

public String getId()
Specified by:
getId in interface javax.enterprise.inject.spi.PassivationCapable

toString

public String toString()
Overrides:
toString in class Object

getQualifierInstances

public Set<QualifierInstance> getQualifierInstances()


Copyright © 2013 Seam Framework. All Rights Reserved.