Package org.jboss.weld.bean
Class CommonBean<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>,javax.enterprise.inject.spi.Bean<T>,javax.enterprise.inject.spi.BeanAttributes<T>
- Direct Known Subclasses:
AbstractSyntheticBean,RIBean
public abstract class CommonBean<T> extends ForwardingBeanAttributes<T> implements javax.enterprise.inject.spi.Bean<T>
Common superclass for beans that are identified using id.- Author:
- Jozef Hartinger, Pete Muir
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommonBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes, org.jboss.weld.serialization.spi.BeanIdentifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.enterprise.inject.spi.BeanAttributes<T>attributes()booleanequals(Object obj)StringgetId()org.jboss.weld.serialization.spi.BeanIdentifiergetIdentifier()inthashCode()booleanisNullable()voidsetAttributes(javax.enterprise.inject.spi.BeanAttributes<T> attributes)StringtoString()protected Objectunwrap(Object object)-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
CommonBean
protected CommonBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes, org.jboss.weld.serialization.spi.BeanIdentifier identifier)
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classForwardingBeanAttributes<T>
-
attributes
protected javax.enterprise.inject.spi.BeanAttributes<T> attributes()
- Specified by:
attributesin classForwardingBeanAttributes<T>
-
setAttributes
public void setAttributes(javax.enterprise.inject.spi.BeanAttributes<T> attributes)
-
isNullable
public boolean isNullable()
- Specified by:
isNullablein interfacejavax.enterprise.inject.spi.Bean<T>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classForwardingBeanAttributes<T>
-
getId
public String getId()
-
getIdentifier
public org.jboss.weld.serialization.spi.BeanIdentifier getIdentifier()
-
-