org.springframework.beans.factory.access
Class BeanFactoryBootstrap


public class BeanFactoryBootstrap

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 DefaultListableBeanFactory.
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(); TODO take properties from other sources besides System properties?

Author:
Rod Johnson
Version: $Id: BeanFactoryBootstrap.java,v 1.1 2004/02/04 17:23:45 jhoeller Exp $
Since: December 2, 2002
See Also: DefaultListableBeanFactory

Field Summary
 final static StringBEAN_FACTORY_BEAN_NAME
           

Method Summary
 BeanFactorygetBeanFactory()
          Return the BeanFactory managed by the Bootstrap.
 static BeanFactoryBootstrapgetInstance()
          Return the singleton instance of the bootstrap factory

Field Detail

BEAN_FACTORY_BEAN_NAME

public final static String BEAN_FACTORY_BEAN_NAME
Method Detail

getBeanFactory

public BeanFactory getBeanFactory()
Return the BeanFactory managed by the Bootstrap.

getInstance

public static BeanFactoryBootstrap getInstance()
throws org.springframework.beans.BeansException
Return the singleton instance of the bootstrap factory
Returns: BeanFactoryBootstrap
Throws:
org.springframework.beans.BeansException

Association Links

to Class java.lang.String

to Class org.springframework.beans.factory.access.BeanFactoryBootstrap

to Class org.springframework.beans.BeansException

to Class org.springframework.beans.factory.BeanFactory

The Singleton instance