类 DefaultLocatorFactory
- java.lang.Object
- org.springframework.context.access.DefaultLocatorFactory
public class DefaultLocatorFactory extends Object
A factory class to get a default ContextSingletonBeanFactoryLocator instance.- 作者:
- Colin Sampaleanu
- 另请参阅:
ContextSingletonBeanFactoryLocator
构造器概要
构造器 构造器 说明 DefaultLocatorFactory()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static BeanFactoryLocator
getInstance()
Return an instance object implementing BeanFactoryLocator.static BeanFactoryLocator
getInstance(String selector)
Return an instance object implementing BeanFactoryLocator.
构造器详细资料
DefaultLocatorFactory
public DefaultLocatorFactory()
方法详细资料
getInstance
public static BeanFactoryLocator getInstance() throws FatalBeanException
Return an instance object implementing BeanFactoryLocator. This will normally be a singleton instance of the specific ContextSingletonBeanFactoryLocator class, using the default resource selector.
getInstance
public static BeanFactoryLocator getInstance(String selector) throws FatalBeanException
Return an instance object implementing BeanFactoryLocator. This will normally be a singleton instance of the specific ContextSingletonBeanFactoryLocator class, using the specified resource selector.- 参数:
selector
- a selector variable which provides a hint to the factory as to which instance to return.- 抛出:
FatalBeanException