Class BaseScope
java.lang.Object
com.cumulocity.microservice.context.scope.BaseScope
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public abstract class BaseScope
extends Object
implements org.springframework.beans.factory.config.Scope
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectlongprotected abstract Stringprotected ObjectgetObjectFromFactory(org.springframework.beans.factory.ObjectFactory<?> objectFactory) protected ScopeContainervoidregisterDestructionCallback(String name, Runnable callback)
-
Field Details
-
DEFAULT_CACHE_EXPIRATION_TIMEOUT
public static final int DEFAULT_CACHE_EXPIRATION_TIMEOUT- See Also:
-
-
Constructor Details
-
BaseScope
public BaseScope(boolean sync) -
BaseScope
public BaseScope(boolean sync, long cacheExpirationTimeout)
-
-
Method Details
-
getContextId
-
getScopeContainer
-
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
doGet
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
getCacheExpirationTimeout
public long getCacheExpirationTimeout() -
getObjectFromFactory
protected Object getObjectFromFactory(org.springframework.beans.factory.ObjectFactory<?> objectFactory)
-