Package ch.tocco.nice2.boot.impl.spring
Class ThreadScopeConfiguration
java.lang.Object
ch.tocco.nice2.boot.impl.spring.ThreadScopeConfiguration
- All Implemented Interfaces:
ThreadHandler,org.springframework.beans.factory.config.Scope
@Component
public class ThreadScopeConfiguration
extends Object
implements org.springframework.beans.factory.config.Scope, ThreadHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbooleanvoidregisterDestructionCallback(String name, Runnable callback) void
-
Constructor Details
-
ThreadScopeConfiguration
public ThreadScopeConfiguration()
-
-
Method Details
-
setupThread
public void setupThread()- Specified by:
setupThreadin interfaceThreadHandler
-
cleanupThread
public void cleanupThread()- Specified by:
cleanupThreadin interfaceThreadHandler
-
createNewScope
public void createNewScope() -
hasActiveScope
public boolean hasActiveScope() -
clearCurrentScope
public void clearCurrentScope() -
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
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
-