Package com.aspectran.core.adapter
Class AbstractSessionAdapter
- java.lang.Object
-
- com.aspectran.core.adapter.AbstractSessionAdapter
-
- All Implemented Interfaces:
SessionAdapter
- Direct Known Subclasses:
BasicSessionAdapter
,HttpSessionAdapter
,TowSessionAdapter
public abstract class AbstractSessionAdapter extends java.lang.Object implements SessionAdapter
The Abstract Class for session object adapter.- Since:
- 2011. 3. 13.
-
-
Field Summary
-
Fields inherited from interface com.aspectran.core.adapter.SessionAdapter
SESSION_SCOPE_ATTRIBUTE_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractSessionAdapter(java.lang.Object adaptee)
Instantiates a new AbstractSessionAdapter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> T
getAdaptee()
Returns the adaptee object to provide session information.SessionScope
getSessionScope()
Gets the session scope.protected abstract SessionScope
newSessionScope()
java.lang.String
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, removeAttribute, setAttribute, setMaxInactiveInterval
-
-
-
-
Method Detail
-
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
public SessionScope getSessionScope()
Description copied from interface:SessionAdapter
Gets the session scope.- Specified by:
getSessionScope
in interfaceSessionAdapter
- Returns:
- the session scope
-
newSessionScope
protected abstract SessionScope newSessionScope()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-