|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.access.JndiBeanFactoryLocator
BeanFactoryLocator implementation that creates the BeanFactory from one or more classpath locations specified in one JNDI environment variable.
This default implementation creates a DefaultListableBeanFactory, populated via an XmlBeanDefinitionReader. Subclasses may override createFactory for custom instantiation.
DefaultListableBeanFactory
,
ContextJndiBeanFactoryLocator
Field Summary | |
static String |
BEAN_FACTORY_PATH_DELIMITERS
Any number of these characters are considered delimiters between multiple bean factory config paths in a single String value. |
protected Log |
logger
|
Constructor Summary | |
JndiBeanFactoryLocator()
|
Method Summary | |
protected BeanFactoryReference |
createBeanFactory(String[] resources)
Actually create the BeanFactory, given an array of classpath resource strings which should be combined. |
BeanFactoryReference |
useBeanFactory(String factoryKey)
Load/use a bean factory, as specified by a factoryKey which is a JNDI address, of the form java:comp/env/ejb/BeanFactoryPath . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String BEAN_FACTORY_PATH_DELIMITERS
protected Log logger
Constructor Detail |
public JndiBeanFactoryLocator()
Method Detail |
public BeanFactoryReference useBeanFactory(String factoryKey) throws BeansException
java:comp/env/ejb/BeanFactoryPath
. The
contents of this JNDI location must be a string containing one or more
classpath resource names (separated by any of the delimiters
',; \t\n
' if there is more than one. The resulting
BeanFactory (or subclass) will be created from the combined resources.
useBeanFactory
in interface BeanFactoryLocator
factoryKey
- a resource name specifying which BeanFactory the BeanFactoryLocator
should return for usage. The actual meaning of the resource name is specific to the
actual implementation of BeanFactoryLocator.
BeansException
- if there is an error loading or accessing the BeanFactoryprotected BeanFactoryReference createBeanFactory(String[] resources) throws BeansException
resources
- an array of Strings representing classpath resource names
BeansException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |