org.springframework.context.access
Class ContextJndiBeanFactoryLocator
java.lang.Object
org.springframework.beans.factory.access.JndiBeanFactoryLocator
org.springframework.context.access.ContextJndiBeanFactoryLocator
- All Implemented Interfaces:
- BeanFactoryLocator
- public class ContextJndiBeanFactoryLocator
- extends JndiBeanFactoryLocator
Subclass of JndiBeanFactoryLocator which creates a
ClassPathXmlApplicationContext instead of a DefaultListableBeanFactory.
Operates identically in every other respect.
- Author:
- Colin Sampaleanu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextJndiBeanFactoryLocator
public ContextJndiBeanFactoryLocator()
createBeanFactory
protected BeanFactoryReference createBeanFactory(String[] resources)
throws BeansException
- Description copied from class:
JndiBeanFactoryLocator
- Actually create the BeanFactory, given an array of classpath resource strings
which should be combined. This is split out as a separate method so that subclasses
can override the actual type uses (to be an ApplicationContext, for example).
- Overrides:
createBeanFactory
in class JndiBeanFactoryLocator
- Parameters:
resources
- an array of Strings representing classpath resource names
- Returns:
- the created BeanFactory, wrapped in a BeanFactoryReference
- Throws:
BeansException
Copyright (C) 2003-2004 The Spring Framework Project.