|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPageFlowManagedObject
public abstract class PageFlowManagedObject
Constructor Summary | |
---|---|
PageFlowManagedObject()
|
Method Summary | |
---|---|
void |
create(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Initialize. |
abstract void |
ensureFailover(HttpServletRequest request)
Ensures that any changes to this object will be replicated in a cluster (for failover), even if the replication scheme uses a change-detection algorithm that relies on HttpSession.setAttribute to be aware of changes. |
protected boolean |
fieldIsUninitialized(Field field)
Tell whether the given Field is uninitialized. |
abstract String |
getDisplayName()
|
protected ServletContext |
getServletContext()
|
protected void |
initializeField(Field field,
Object instance)
Initialize the given field with an instance. |
protected void |
onCreate()
Create-time callback. |
protected void |
onDestroy(HttpSession session)
Callback that occurs when this object is "destroyed", i.e., removed from the session. |
abstract void |
persistInSession(HttpServletRequest request,
HttpServletResponse response)
Store this object in the user session, in the appropriate place. |
void |
reinitialize(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Initialize transient data that may have been lost during session failover. |
protected abstract void |
removeFromSession(HttpServletRequest request)
Remove this instance from the session. |
void |
valueBound(HttpSessionBindingEvent event)
Callback when this object is added to the user session. |
void |
valueUnbound(HttpSessionBindingEvent event)
Callback when this object is removed from the user session. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageFlowManagedObject()
Method Detail |
---|
public void reinitialize(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
public void create(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws Exception
Exception
protected void onCreate() throws Exception
Exception
protected void onDestroy(HttpSession session)
session
- public void valueBound(HttpSessionBindingEvent event)
valueBound
in interface HttpSessionBindingListener
public void valueUnbound(HttpSessionBindingEvent event)
onDestroy(javax.servlet.http.HttpSession)
to be called.
valueUnbound
in interface HttpSessionBindingListener
protected abstract void removeFromSession(HttpServletRequest request)
public abstract void persistInSession(HttpServletRequest request, HttpServletResponse response)
public abstract void ensureFailover(HttpServletRequest request)
request
- the current HttpServletRequestprotected ServletContext getServletContext()
public abstract String getDisplayName()
protected boolean fieldIsUninitialized(Field field)
true
if the field is non-null
and its value is null
.protected void initializeField(Field field, Object instance)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |