| java.lang.Object org.springframework.beans.factory.access.SingletonBeanFactoryLocator org.springframework.context.access.ContextSingletonBeanFactoryLocator
ContextSingletonBeanFactoryLocator | protected ContextSingletonBeanFactoryLocator(String resourceLocation)(Code) | | Constructor which uses the the specified name as the resource name
of the definition file(s).
Parameters: resourceLocation - the Spring resource location to use(either a URL or a "classpath:" / "classpath*:" pseudo URL) |
getInstance | public static BeanFactoryLocator getInstance() throws BeansException(Code) | | Returns an instance which uses the default "classpath*:beanRefContext.xml", as
the name of the definition file(s). All resources returned by the current
thread's context class loader's getResources method with this
name will be combined to create a definition, which is just a BeanFactory.
the corresponding BeanFactoryLocator instance throws: BeansException - in case of factory loading failure |
getInstance | public static BeanFactoryLocator getInstance(String selector) throws BeansException(Code) | | Returns an instance which uses the the specified selector, as the name of the
definition file(s). In the case of a name with a Spring "classpath*:" prefix,
or with no prefix, which is treated the same, the current thread's context class
loader's getResources method will be called with this value to get
all resources having that name. These resources will then be combined to form a
definition. In the case where the name uses a Spring "classpath:" prefix, or
a standard URL prefix, then only one resource file will be loaded as the
definition.
Parameters: selector - the location of the resource(s) which will be read andcombined to form the definition for the BeanFactoryLocator instance.Any such files must form a valid ApplicationContext definition. the corresponding BeanFactoryLocator instance throws: BeansException - in case of factory loading failure |
Fields inherited from org.springframework.beans.factory.access.SingletonBeanFactoryLocator | final protected static Log logger(Code)(Java Doc)
|
|
|