|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.BaseOptimizedSessionPersistedObject
public abstract class BaseOptimizedSessionPersistedObject
Base implementation of
OptimizedSessionPersistedObject
. Subclasses
should invoke markDirty()
when internal state of the object changes.
Note that (due to TAP5-834), the object will receive a spurious
valueUnbound()
notification when dirty. Tapestry sets dirty
session attributes to null, then to the persisted object, to force a
valueBound()
notification, and that unfortunately also sends the
valueUnbound()
.
Constructor Summary | |
---|---|
BaseOptimizedSessionPersistedObject()
|
Method Summary | |
---|---|
boolean |
isSessionPersistedObjectDirty()
Returns true if the object has in-memory changes. |
protected void |
markDirty()
Invoked by the subclass whenever the internal state of the object changes. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Invoked by the servlet container when the value is stored (or re-stored) as an attribute of the session. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseOptimizedSessionPersistedObject()
Method Detail |
---|
public final boolean isSessionPersistedObjectDirty()
OptimizedSessionPersistedObject
HttpSessionBindingListener
.
isSessionPersistedObjectDirty
in interface OptimizedSessionPersistedObject
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
protected final void markDirty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |