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 java.lang.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 java.lang.String BEAN_ID_PREFIX
           
static java.lang.String BEAN_ID_SEPARATOR
           
 
Constructor Summary
protected RIBean(java.lang.String idSuffix, BeanManagerImpl beanManager)
           
 
Method Summary
 void checkType()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<?> getBeanClass()
           
protected  BeanManagerImpl getBeanManager()
           
 java.lang.String getId()
           
 java.util.Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
           
abstract  RIBean<?> getSpecializedBean()
           
abstract  java.lang.Class<T> getType()
           
abstract  java.util.Set<WeldInjectionPoint<?,?>> getWeldInjectionPoints()
           
 int hashCode()
           
abstract  void initialize(BeanDeployerEnvironment environment)
           
 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()
           
 boolean isProxyRequired()
           
abstract  boolean isSpecializing()
           
 java.lang.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 java.lang.String BEAN_ID_PREFIX

BEAN_ID_SEPARATOR

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

RIBean

protected RIBean(java.lang.String idSuffix,
                 BeanManagerImpl beanManager)
Method Detail

getBeanManager

protected BeanManagerImpl getBeanManager()

getType

public abstract java.lang.Class<T> getType()

getBeanClass

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

initialize

public abstract void initialize(BeanDeployerEnvironment environment)

initializeAfterBeanDiscovery

public 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 -

checkType

public void checkType()

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 boolean isProxyRequired()

isPrimitive

public abstract boolean isPrimitive()

getWeldInjectionPoints

public abstract java.util.Set<WeldInjectionPoint<?,?>> getWeldInjectionPoints()

getInjectionPoints

public java.util.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(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getId

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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