Package com.aspectran.core.adapter
Class AbstractSessionAdapter
java.lang.Object
com.aspectran.core.adapter.AbstractSessionAdapter
- All Implemented Interfaces:
SessionAdapter
- Direct Known Subclasses:
DefaultSessionAdapter
,HttpSessionAdapter
,TowSessionAdapter
The Abstract Class for session object adapter.
- Since:
- 2011. 3. 13.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSessionAdapter
(Object adaptee) Instantiates a new AbstractSessionAdapter. -
Method Summary
Modifier and TypeMethodDescriptionprotected SessionScope
<T> T
Returns the adaptee object to provide session information.getSessionScope
(boolean create) Returns the current session scope.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aspectran.core.adapter.SessionAdapter
getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, invalidate, isNew, isValid, removeAttribute, setAttribute, setMaxInactiveInterval
-
Constructor Details
-
AbstractSessionAdapter
Instantiates a new AbstractSessionAdapter.- Parameters:
adaptee
- the adaptee object
-
-
Method Details
-
getAdaptee
public <T> T getAdaptee()Description copied from interface:SessionAdapter
Returns the adaptee object to provide session information.- Specified by:
getAdaptee
in interfaceSessionAdapter
- Type Parameters:
T
- the type of the adaptee object- Returns:
- the adaptee object
-
getSessionScope
Description copied from interface:SessionAdapter
Returns the current session scope.- Specified by:
getSessionScope
in interfaceSessionAdapter
- Parameters:
create
- if true, if there is no currently created session area, a new one is created.- Returns:
- the session scope
-
createSessionScope
-
toString
-