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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
boolean
void
registerDestructionCallback
(String name, Runnable callback) void
-
Constructor Details
-
ThreadScopeConfiguration
public ThreadScopeConfiguration()
-
-
Method Details
-
setupThread
public void setupThread()- Specified by:
setupThread
in interfaceThreadHandler
-
cleanupThread
public void cleanupThread()- Specified by:
cleanupThread
in interfaceThreadHandler
-
createNewScope
public void createNewScope() -
hasActiveScope
public boolean hasActiveScope() -
clearCurrentScope
public void clearCurrentScope() -
get
- Specified by:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
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
-