org.springframework.beans.factory.access
Class BeanFactoryBootstrap
java.lang.Object
org.springframework.beans.factory.access.BeanFactoryBootstrap
- public class BeanFactoryBootstrap
- extends java.lang.Object
One singleton to rule them all. Reads System properties, which
must contain the definition of a bootstrap bean factory using
the Properties syntax supported by PropertiesBeanDefinitionReader.
The name of the bootstrap factory must be "bootstrapBeanFactory".
Thus a typical definition might be:
bootstrapBeanFactory.class=com.mycompany.MyBeanFactory
Use as follows:
BeanFactory bf = BeanFactoryBootstrap.getInstance().getBeanFactory();
- Since:
- December 2, 2002
- Author:
- Rod Johnson
- See Also:
PropertiesBeanDefinitionReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN_FACTORY_BEAN_NAME
public static final java.lang.String BEAN_FACTORY_BEAN_NAME
- See Also:
- Constant Field Values
getInstance
public static BeanFactoryBootstrap getInstance()
throws BeansException
- Return the singleton instance of the bootstrap factory
- Returns:
- BeanFactoryBootstrap
- Throws:
BeansException
reinitialize
protected static void reinitialize()
- For testing only. Cleans and reinitalizes the instance.
Do not use in a production application!
getBeanFactory
public BeanFactory getBeanFactory()
- Return the BeanFactory managed by the Bootstrap.
Copyright (C) 2003-2004 The Spring Framework Project.