public class ThreadScopeManager extends Object implements org.springframework.beans.factory.config.Scope, javax.servlet.ServletRequestListener
SimpleThreadScope. The difference being ThreadScopeManager
supports destruction callbacks such as PreDestroy. If used in conjunction with ThreadScopePropagatingScheduler as an executor, tasks will be able to access the thread
scoped beans of the thread scheduling the task.| Constructor and Description |
|---|
ThreadScopeManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(ThreadScopeState threadScopeState) |
Object |
get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
String |
getConversationId() |
ThreadScopeState |
getThreadScopeState() |
void |
registerDestructionCallback(String name,
Runnable callback) |
Object |
remove(String name) |
void |
requestDestroyed(javax.servlet.ServletRequestEvent servletRequestEvent) |
void |
requestInitialized(javax.servlet.ServletRequestEvent servletRequestEvent) |
Object |
resolveContextualObject(String key) |
void |
unbind() |
public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopepublic Object remove(String name)
remove in interface org.springframework.beans.factory.config.Scopepublic void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback in interface org.springframework.beans.factory.config.Scopepublic Object resolveContextualObject(String key)
resolveContextualObject in interface org.springframework.beans.factory.config.Scopepublic String getConversationId()
getConversationId in interface org.springframework.beans.factory.config.Scopepublic ThreadScopeState getThreadScopeState()
public void bind(ThreadScopeState threadScopeState)
public void unbind()
public void requestDestroyed(javax.servlet.ServletRequestEvent servletRequestEvent)
requestDestroyed in interface javax.servlet.ServletRequestListenerpublic void requestInitialized(javax.servlet.ServletRequestEvent servletRequestEvent)
requestInitialized in interface javax.servlet.ServletRequestListenerCopyright © 2015 devbury. All rights reserved.