|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPageFlowManagedObject
public abstract class PageFlowManagedObject
Base class for Page Flow managed objects (like page flows and JavaServer Faces backing beans).
Constructor Summary | |
---|---|
protected |
PageFlowManagedObject()
|
Method Summary | |
---|---|
void |
create(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Initialize after object creation. |
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. |
long |
getCreateTime()
Get the time at which this object was created. |
abstract String |
getDisplayName()
Get the display name for this managed object. |
protected ServletContext |
getServletContext()
Get the current ServletContext. |
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)
Reinitialize the object for a new request. |
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 |
---|
protected 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. This is a
framework-invoked method that should not normally be called indirectly.
valueUnbound
in interface HttpSessionBindingListener
public 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)
public long getCreateTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |