Package com.hybris.cockpitng.core.spring
Class RequestOperationScope
- java.lang.Object
-
- com.hybris.cockpitng.core.spring.RequestOperationScope
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public class RequestOperationScope extends java.lang.Object implements org.springframework.beans.factory.config.ScopeSpring scope for request and all operations it triggers.Operations should attach to scope before execution using
RequestOperationContextHolder.attachToContext(RequestOperationContextHolder.ContextRequest)and detach after finishing usingRequestOperationContextHolder.detachFromContext().- See Also:
RequestOperationContextHolder
-
-
Constructor Summary
Constructors Constructor Description RequestOperationScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.String name, org.springframework.beans.factory.ObjectFactory<?> factory)protected RequestOperationContextgetContext()java.lang.StringgetConversationId()voidregisterDestructionCallback(java.lang.String name, java.lang.Runnable callback)java.lang.Objectremove(java.lang.String name)java.lang.ObjectresolveContextualObject(java.lang.String objectName)
-
-
-
Method Detail
-
getConversationId
public java.lang.String getConversationId()
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
get
public java.lang.Object get(java.lang.String name, org.springframework.beans.factory.ObjectFactory<?> factory)- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(java.lang.String name, java.lang.Runnable callback)- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
remove
public java.lang.Object remove(java.lang.String name)
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
public java.lang.Object resolveContextualObject(java.lang.String objectName)
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getContext
protected RequestOperationContext getContext()
-
-