站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

BeanFactoryBootstrap (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.beans.factory.access
Class BeanFactoryBootstrap

java.lang.Object
  extended by org.springframework.beans.factory.access.BeanFactoryBootstrap

Deprecated. since Spring 1.2.7: consider using a BeanFactoryLocator or a custom bootstrap class instead

public class BeanFactoryBootstrap
extends 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:
02.12.2002
Author:
Rod Johnson
See Also:
BeanFactoryLocator

Field Summary
static String BEAN_FACTORY_BEAN_NAME
          Deprecated.  
 
Method Summary
 BeanFactory getBeanFactory()
          Deprecated. Return the BeanFactory managed by the Bootstrap.
static BeanFactoryBootstrap getInstance()
          Deprecated. Return the singleton instance of the bootstrap factory
protected static void reinitialize()
          Deprecated. For testing only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_FACTORY_BEAN_NAME

public static final String BEAN_FACTORY_BEAN_NAME
Deprecated. 
See Also:
Constant Field Values
Method Detail

getInstance

public static BeanFactoryBootstrap getInstance()
                                        throws BeansException
Deprecated. 
Return the singleton instance of the bootstrap factory

Returns:
BeanFactoryBootstrap
Throws:
BeansException

reinitialize

protected static void reinitialize()
Deprecated. 
For testing only. Cleans and reinitalizes the instance. Do not use in a production application!


getBeanFactory

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



Copyright (c) 2002-2007 The Spring Framework Project.