public class GenericScope extends Object implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor, org.springframework.beans.factory.DisposableBean
A generic Scope implementation.
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericScope.LockedScopedProxyFactoryBean<S extends GenericScope> |
| Modifier and Type | Field and Description |
|---|---|
static String |
SCOPED_TARGET_PREFIX |
| Constructor and Description |
|---|
GenericScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected boolean |
destroy(String name)
Destroy the named bean (i.e.
|
Object |
get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
String |
getConversationId() |
Map<String,Exception> |
getErrors()
A map of bean name to errors when instantiating the bean.
|
protected ReadWriteLock |
getLock(String beanName) |
protected String |
getName() |
void |
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
registerDestructionCallback(String name,
Runnable callback) |
Object |
remove(String name) |
Object |
resolveContextualObject(String key) |
void |
setId(String id)
Manual override for the serialization id that will be used to identify the bean
factory.
|
void |
setName(String name)
The name of this scope.
|
void |
setScopeCache(ScopeCache cache)
The cache implementation to use for bean instances in this scope.
|
public static final String SCOPED_TARGET_PREFIX
public void setId(String id)
id - the id to setpublic void setName(String name)
name - the name value to setpublic void setScopeCache(ScopeCache cache)
cache - the cache to usepublic Map<String,Exception> getErrors()
public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanprotected boolean destroy(String name)
name - the bean name to flushpublic Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopepublic String getConversationId()
getConversationId in interface org.springframework.beans.factory.config.Scopepublic void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback in interface org.springframework.beans.factory.config.Scopepublic Object remove(String name)
remove in interface org.springframework.beans.factory.config.Scopepublic Object resolveContextualObject(String key)
resolveContextualObject in interface org.springframework.beans.factory.config.Scopepublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
throws org.springframework.beans.BeansException
postProcessBeanDefinitionRegistry in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessororg.springframework.beans.BeansExceptionprotected String getName()
protected ReadWriteLock getLock(String beanName)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.