Package pl.matsuo.core.web.scope
Class WideSessionScope
java.lang.Object
org.springframework.web.context.request.AbstractRequestAttributesScope
pl.matsuo.core.web.scope.WideSessionScope
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public class WideSessionScope
extends org.springframework.web.context.request.AbstractRequestAttributesScope
implements org.springframework.beans.factory.config.Scope
Session scope modification that provides bean even outside of http request processing.
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,ThreadLocal<Object>>objectHolders -
Constructor Summary
Constructors Constructor Description WideSessionScope() -
Method Summary
Methods inherited from class org.springframework.web.context.request.AbstractRequestAttributesScope
resolveContextualObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.Scope
resolveContextualObject
-
Field Details
-
objectHolders
-
-
Constructor Details
-
WideSessionScope
public WideSessionScope()
-
-
Method Details
-
getScope
protected int getScope()- Specified by:
getScopein classorg.springframework.web.context.request.AbstractRequestAttributesScope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope- Overrides:
getin classorg.springframework.web.context.request.AbstractRequestAttributesScope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope- Overrides:
removein classorg.springframework.web.context.request.AbstractRequestAttributesScope
-
registerDestructionCallback
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope- Overrides:
registerDestructionCallbackin classorg.springframework.web.context.request.AbstractRequestAttributesScope
-