org.springframework.context.access
Class ContextJndiBeanFactoryLocator

java.lang.Object
  extended byorg.springframework.beans.factory.access.JndiBeanFactoryLocator
      extended byorg.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

Field Summary
 
Fields inherited from class org.springframework.beans.factory.access.JndiBeanFactoryLocator
BEAN_FACTORY_PATH_DELIMITERS, logger
 
Constructor Summary
ContextJndiBeanFactoryLocator()
           
 
Method Summary
protected  BeanFactoryReference createBeanFactory(String[] resources)
          Actually create the BeanFactory, given an array of classpath resource strings which should be combined.
 
Methods inherited from class org.springframework.beans.factory.access.JndiBeanFactoryLocator
useBeanFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextJndiBeanFactoryLocator

public ContextJndiBeanFactoryLocator()
Method Detail

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.