|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.container.SerializableBeanVault
public class SerializableBeanVault
This class acts as a storage for SerializableBeans.
Any Contextual<T> which holds it's information on a storage which may get serialized, like e.g. the SessionContext, the ConversationContext or any 3-rd party Context for a NormalScoped(passivating=true) and therefore PassivationCapable Scope needs to be Serializable.
Normal Beans are not serializable because they contain non transportable information. But each
PassivationCapable Bean is uniquely
identifyable via it's id and can be restored by
BeanManager.getPassivationCapableBean(String).
Since a custom Context implementation doesn't know when it gets passivated (for a Http Session
this is pretty seldom), the Contextual
| Constructor Summary | |
|---|---|
SerializableBeanVault()
|
|
| Method Summary | ||
|---|---|---|
static SerializableBeanVault |
getInstance()
Deprecated. |
|
|
getSerializableBean(javax.enterprise.context.spi.Contextual<T> bean)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializableBeanVault()
| Method Detail |
|---|
@Deprecated public static final SerializableBeanVault getInstance()
public <T> javax.enterprise.context.spi.Contextual<T> getSerializableBean(javax.enterprise.context.spi.Contextual<T> bean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||