Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » config » [javadoc | source]
org.springframework.beans.factory.config
public class: CustomScopeConfigurer [javadoc | source]
java.lang.Object
   org.springframework.beans.factory.config.CustomScopeConfigurer

All Implemented Interfaces:
    Ordered, BeanFactoryPostProcessor, BeanClassLoaderAware

Simple BeanFactoryPostProcessor implementation that registers custom Scope(s) 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.

Method from org.springframework.beans.factory.config.CustomScopeConfigurer Summary:
getOrder,   postProcessBeanFactory,   setBeanClassLoader,   setOrder,   setScopes
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.factory.config.CustomScopeConfigurer Detail:
 public int getOrder() 
 public  void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException 
 public  void setBeanClassLoader(ClassLoader beanClassLoader) 
 public  void setOrder(int order) 
 public  void setScopes(Map scopes) 
    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.