public static class AbstractScope.ScopeContainer extends Object implements org.springframework.beans.factory.config.Scope
| Constructor and Description |
|---|
ScopeContainer(String conversationId) |
ScopeContainer(String conversationId,
Map<String,Object> beans) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Calls all registered destruction callbacks and removes all bean references from the
container.
|
protected void |
finalize()
For orphan containers.
|
Object |
get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
String |
getConversationId() |
Object |
registerBean(String name,
Object bean)
Register a bean in this scope.
|
void |
registerDestructionCallback(String name,
Runnable callback)
Register a bean destruction callback.
|
Object |
remove(String key) |
Object |
resolveContextualObject(String key) |
public ScopeContainer(String conversationId)
public Object remove(String key)
remove in interface org.springframework.beans.factory.config.Scopepublic Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopepublic Object registerBean(String name, Object bean)
name - The name of the bean.bean - The bean instance to register. If null, any existing registration is removed.public void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback in interface org.springframework.beans.factory.config.Scopename - Bean name.callback - Callback.protected void finalize()
throws Throwable
public void destroy()
public Object resolveContextualObject(String key)
resolveContextualObject in interface org.springframework.beans.factory.config.Scopepublic String getConversationId()
getConversationId in interface org.springframework.beans.factory.config.ScopeCopyright © 2018 Fujion Framework. All rights reserved.