public final class SerializableBean<T> extends Object implements javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.PassivationCapable, Serializable
PassivationCapable.getId()
and
BeanManager.getPassivationCapableBean(String)
for serialisation and deserialisation.Modifier and Type | Method and Description |
---|---|
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() |
public javax.enterprise.inject.spi.Bean<T> getBean()
public Set<Type> getTypes()
getTypes
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public Set<Annotation> getQualifiers()
getQualifiers
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public Class<? extends Annotation> getScope()
getScope
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public String getName()
getName
in interface javax.enterprise.inject.spi.BeanAttributes<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.BeanAttributes<T>
public boolean isAlternative()
isAlternative
in interface javax.enterprise.inject.spi.BeanAttributes<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.PassivationCapable
public boolean equals(Object other)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.