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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
long
protected abstract String
protected Object
getObjectFromFactory
(org.springframework.beans.factory.ObjectFactory<?> objectFactory) protected ScopeContainer
void
registerDestructionCallback
(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:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
doGet
-
remove
- Specified by:
remove
in interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallback
in interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObject
in interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationId
in interfaceorg.springframework.beans.factory.config.Scope
-
getCacheExpirationTimeout
public long getCacheExpirationTimeout() -
getObjectFromFactory
protected Object getObjectFromFactory(org.springframework.beans.factory.ObjectFactory<?> objectFactory)
-