|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.container.SerializableBean<T>
public final class SerializableBean<T>
Wrapper to make all our Beans serializable.
This is basically a delegate to an underlying Bean<T>.
We use the PassivationCapable.getId() and
BeanManager.getPassivationCapableBean(String)
for serialisation and deserialisation.
| Method Summary | |
|---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> tCreationalContext)
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> tCreationalContext)
|
boolean |
equals(Object other)
If the other object is a SerializableBean too, we compare the 2 underlying wrapped beans. |
javax.enterprise.inject.spi.Bean<T> |
getBean()
|
Class<?> |
getBeanClass()
|
String |
getId()
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
|
String |
getName()
|
Set<Annotation> |
getQualifiers()
|
Class<? extends Annotation> |
getScope()
|
Set<Class<? extends Annotation>> |
getStereotypes()
|
Set<Type> |
getTypes()
|
int |
hashCode()
We need to return the hashCode of the wrapped underlying bean, otherwise the context won't work. |
boolean |
isAlternative()
|
boolean |
isNullable()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public javax.enterprise.inject.spi.Bean<T> getBean()
public Set<Type> getTypes()
getTypes in interface javax.enterprise.inject.spi.Bean<T>public Set<Annotation> getQualifiers()
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>public Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.inject.spi.Bean<T>public String getName()
getName in interface javax.enterprise.inject.spi.Bean<T>public boolean isNullable()
isNullable in interface javax.enterprise.inject.spi.Bean<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>public Class<?> getBeanClass()
getBeanClass in interface javax.enterprise.inject.spi.Bean<T>public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes in interface javax.enterprise.inject.spi.Bean<T>public boolean isAlternative()
isAlternative in interface javax.enterprise.inject.spi.Bean<T>public T create(javax.enterprise.context.spi.CreationalContext<T> tCreationalContext)
create in interface javax.enterprise.context.spi.Contextual<T>
public void destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> tCreationalContext)
destroy in interface javax.enterprise.context.spi.Contextual<T>public String getId()
getId in interface javax.enterprise.inject.spi.PassivationCapablepublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||