open class CustomScopeConfigurer : BeanFactoryPostProcessor, BeanClassLoaderAware, Ordered
Simple BeanFactoryPostProcessor implementation that registers custom Scope with the containing ConfigurableBeanFactory.
Will register all of the supplied scopes with the ConfigurableListableBeanFactory that is passed to the #postProcessBeanFactory(ConfigurableListableBeanFactory) method.
This class allows for declarative registration of custom scopes. Alternatively, consider implementing a custom BeanFactoryPostProcessor that calls ConfigurableBeanFactory#registerScope programmatically.
Author
Juergen Hoeller
Author
Rick Evans
Since
2.0
See Also
ConfigurableBeanFactory#registerScope
CustomScopeConfigurer()
Simple BeanFactoryPostProcessor implementation that registers custom Scope with the containing ConfigurableBeanFactory. Will register all of the supplied This class allows for declarative registration of custom scopes. Alternatively, consider implementing a custom BeanFactoryPostProcessor that calls |
open fun addScope(scopeName: String, scope: Scope): Unit
Add the given scope to this configurer's map of scopes. |
|
open fun getOrder(): Int |
|
open fun postProcessBeanFactory(beanFactory: ConfigurableListableBeanFactory): Unit |
|
open fun setBeanClassLoader(beanClassLoader: ClassLoader): Unit |
|
open fun setOrder(order: Int): Unit |
|
open fun setScopes(scopes: MutableMap<String, Any>): Unit
Specify the custom scopes that are to be registered. The keys indicate the scope names (of type String); each value is expected to be the corresponding custom Scope instance or class name. |