public abstract class CommonBean<T> extends ForwardingBeanAttributes<T> implements Bean<T>
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_ID_PREFIX |
static String |
BEAN_ID_SEPARATOR |
Modifier | Constructor and Description |
---|---|
protected |
CommonBean(BeanAttributes<T> attributes,
String idSuffix,
BeanManagerImpl beanManager) |
Modifier and Type | Method and Description |
---|---|
protected BeanAttributes<T> |
attributes() |
boolean |
equals(Object obj) |
String |
getId() |
int |
hashCode() |
boolean |
isNullable()
Determines if
Contextual.create(CreationalContext) sometimes return a null value. |
void |
setAttributes(BeanAttributes<T> attributes) |
String |
toString() |
protected Object |
unwrap(Object object) |
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBeanClass, getInjectionPoints
create, destroy
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
public static final String BEAN_ID_PREFIX
public static final String BEAN_ID_SEPARATOR
protected CommonBean(BeanAttributes<T> attributes, String idSuffix, BeanManagerImpl beanManager)
public boolean equals(Object obj)
equals
in class ForwardingBeanAttributes<T>
protected BeanAttributes<T> attributes()
attributes
in class ForwardingBeanAttributes<T>
public void setAttributes(BeanAttributes<T> attributes)
public boolean isNullable()
Bean
Determines if Contextual.create(CreationalContext)
sometimes return a null value.
As of CDI 1.1 this method is deprecated and can safely always return false.
isNullable
in interface Bean<T>
create()
method may return a null value, and false otherwisepublic int hashCode()
hashCode
in class ForwardingBeanAttributes<T>
public String getId()
Copyright © 2013 Seam Framework. All Rights Reserved.