|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.petite.scope.SessionScope
public class SessionScope
Session scope stores unique object instances per single http session.
Upon creation, new session listener is registered (dynamically) that will
keep track on active sessions.RequestContextListener
is used for accessing
the request.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
sessionInstances
|
protected jodd.servlet.HttpSessionListenerBroadcaster |
sessionListeners
|
Constructor Summary | |
---|---|
SessionScope()
|
Method Summary | |
---|---|
protected java.lang.String |
getHttpSessionId()
Returns request from current thread. |
java.lang.Object |
lookup(java.lang.String name)
Lookups for bean name. |
void |
register(java.lang.String name,
java.lang.Object object)
Registers the bean within the current scope. |
void |
remove(java.lang.String name)
Removes the bean from the scope entirely. |
void |
replaceIn(java.lang.String name,
ScopeReplacer scopeReplacer)
Replaces the bean in current scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> sessionInstances
protected final jodd.servlet.HttpSessionListenerBroadcaster sessionListeners
Constructor Detail |
---|
public SessionScope()
Method Detail |
---|
public java.lang.Object lookup(java.lang.String name)
Scope
lookup
in interface Scope
public void register(java.lang.String name, java.lang.Object object)
Scope
register
in interface Scope
public void remove(java.lang.String name)
Scope
remove
in interface Scope
public void replaceIn(java.lang.String name, ScopeReplacer scopeReplacer)
Scope
replaceIn
in interface Scope
protected java.lang.String getHttpSessionId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |