|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.command.action.ActionSession
public final class ActionSession
This object serves as transport object for all instances of statefull actions for an user, instead of saving them individually in the user's session.
Constructor Summary | |
---|---|
ActionSession()
Constructs a new ActionSession object. |
Method Summary | |
---|---|
Action |
getInstance(java.lang.String name)
Obtains an action instance from session. |
void |
setInstance(java.lang.String name,
Action action)
Saves an action instance on session. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
Notifies the object that it is being bound to a session and identifies the session. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
Notifies the object that it is being unbound from a session and identifies the session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionSession()
ActionSession
object.
Method Detail |
---|
public void setInstance(java.lang.String name, Action action)
name
- String action class name.action
- Action action instance.public Action getInstance(java.lang.String name)
name
- String action class name.
null
if not found.public void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
httpSessionBindingEvent
- HttpSessionBindingEvent the event that
identifies the session.HttpSessionBindingListener.valueBound(HttpSessionBindingEvent)
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent)
ActionSession
is unbound it call destroy
method for all action instances in session to allow them to release any resource.
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
httpSessionBindingEvent
- HttpSessionBindingEvent the event that
identifies the session.HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |