public final class SerializableBean<T> extends Object implements Bean<T>, PassivationCapable, Serializable
PassivationCapable.getId() and
BeanManager.getPassivationCapableBean(String)
for serialisation and deserialisation.| Modifier and Type | Method and Description |
|---|---|
T |
create(CreationalContext<T> tCreationalContext) |
void |
destroy(T instance,
CreationalContext<T> tCreationalContext) |
boolean |
equals(Object other)
If the other object is a SerializableBean too, we compare the 2 underlying wrapped beans.
|
Bean<T> |
getBean() |
Class<?> |
getBeanClass() |
String |
getId() |
Set<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() |
public Set<Annotation> getQualifiers()
getQualifiers in interface Bean<T>public Class<? extends Annotation> getScope()
public boolean isNullable()
isNullable in interface Bean<T>public Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Bean<T>public Class<?> getBeanClass()
getBeanClass in interface Bean<T>public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes in interface Bean<T>public boolean isAlternative()
isAlternative in interface Bean<T>public T create(CreationalContext<T> tCreationalContext)
create in interface Contextual<T>public void destroy(T instance, CreationalContext<T> tCreationalContext)
destroy in interface Contextual<T>public String getId()
getId in interface PassivationCapablepublic boolean equals(Object other)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.