|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.dominate.sessions.CompositeSessionManager
public class CompositeSessionManager
This SessionManager implementation is able to delegate its behavior
to other session managers so sessions of various types can be retrieved.
| Constructor Summary | |
|---|---|
CompositeSessionManager(SessionMode mode)
|
|
| Method Summary | ||
|---|---|---|
|
getSession(Class<S> sessionClass)
Retrieves a session associated with this SessionManager. |
|
SessionMode |
getSessionMode()
Retrieves the SessionMode associated with this SessionManager |
|
boolean |
hasSessionMode(SessionMode sMode)
Check if this SessionManager has a certain SessionMode |
|
boolean |
isReleased()
Check if this SessionManager has been released. |
|
void |
release()
Release this SessionManager and close all the associated sessions. |
|
void |
reset()
Close all the associated sessions. |
|
void |
setSessionMode(SessionMode sessionMode)
|
|
org.apache.commons.collections.Closure |
transactionalClosure(org.apache.commons.collections.Closure toBeDone)
Decorate a closure so that it will be executed in a transactional context. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeSessionManager(SessionMode mode)
| Method Detail |
|---|
public void setSessionMode(SessionMode sessionMode)
setSessionMode in interface SessionManagerpublic <S> S getSession(Class<S> sessionClass)
SessionManager
getSession in interface SessionManagersessionClass - the class of the needed session
public SessionMode getSessionMode()
SessionManagerSessionMode associated with this SessionManager
getSessionMode in interface SessionManagerSessionMode associated with this SessionManagerpublic boolean hasSessionMode(SessionMode sMode)
SessionManagerSessionMode
hasSessionMode in interface SessionManagersMode - the SessionMode to check
SessionModepublic void release()
SessionManagerSessionManager.getSession(Class) method is called an IllegalStateException will be thrown
release in interface SessionManagerpublic boolean isReleased()
SessionManager
isReleased in interface SessionManager#release()}public void reset()
SessionManagerSessionManager.getSession(Class) method
is called a new session will be opened.
reset in interface SessionManagerpublic org.apache.commons.collections.Closure transactionalClosure(org.apache.commons.collections.Closure toBeDone)
SessionManager
transactionalClosure in interface SessionManagertoBeDone - the closure to be decorated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||