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 Modifier and Type Field Description static int
DEFAULT_CACHE_EXPIRATION_TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Object
doGet(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
Object
get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
long
getCacheExpirationTimeout()
protected abstract String
getContextId()
String
getConversationId()
protected Object
getObjectFromFactory(org.springframework.beans.factory.ObjectFactory<?> objectFactory)
protected ScopeContainer
getScopeContainer()
void
registerDestructionCallback(String name, Runnable callback)
Object
remove(String name)
Object
resolveContextualObject(String key)
-
-
-
Field Detail
-
DEFAULT_CACHE_EXPIRATION_TIMEOUT
public static final int DEFAULT_CACHE_EXPIRATION_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContextId
protected abstract String getContextId()
-
getScopeContainer
protected ScopeContainer getScopeContainer()
-
get
public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
- Specified by:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
doGet
protected Object doGet(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
-
remove
public Object remove(String name)
- Specified by:
remove
in interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(String name, Runnable callback)
- Specified by:
registerDestructionCallback
in interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
public Object resolveContextualObject(String key)
- Specified by:
resolveContextualObject
in interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
public String 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)
-
-