public abstract class CommonBean<T> extends ForwardingBeanAttributes<T> implements Bean<T>
Modifier | Constructor and Description |
---|---|
protected |
CommonBean(BeanAttributes<T> attributes,
BeanIdentifier identifier) |
Modifier and Type | Method and Description |
---|---|
protected BeanAttributes<T> |
attributes() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId() |
BeanIdentifier |
getIdentifier() |
int |
hashCode() |
boolean |
isNullable()
Determines if
Contextual.create(CreationalContext) sometimes return a null value. |
void |
setAttributes(BeanAttributes<T> attributes) |
java.lang.String |
toString() |
protected java.lang.Object |
unwrap(java.lang.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
protected CommonBean(BeanAttributes<T> attributes, BeanIdentifier identifier)
protected java.lang.Object unwrap(java.lang.Object object)
public boolean equals(java.lang.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 java.lang.String getId()
public BeanIdentifier getIdentifier()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014. All Rights Reserved.