| Home >> All >> org >> springframework >> beans >> factory >> [ access Javadoc ] |
org.springframework.beans.factory.access: Javadoc index of package org.springframework.beans.factory.access.
Package Samples:
org.springframework.beans.factory.access
Classes:
SingletonBeanFactoryLocator: Keyed-singleton implementation of BeanFactoryLocator, which leverages existing Spring constructs. This is normally accessed through DefaultLocatorFactory, but may also be used directly. Please see the warning in BeanFactoryLocator's javadoc about appropriate usage of singleton style BeanFactoryLocator implementations. It is the opinion of the Spring team that the use of this class and similar classes is unnecessary except (sometimes) for a small amount of glue code. Excessive usage will lead to code that is more tightly coupled, and harder to modify or test. In this implementation, a BeanFactory ...
BeanFactoryLocator: An interface for a class used to lookup/use, and optionally allow the release of a BeanFactory, or BeanFactory subclass such as ApplicationContext. Where this interface is implemented as a singleton class such as SingletonBeanFactoryLocator, the Spring team strongly suggests that it be used sparingly and with caution. By far the vast majority of the code inside an application is best written in a Dependency Injection style, where that code is served out of a BeanFactory/ApplicationContext container, and has its own dependencies supplied by the container when it is created. However, even such a ...
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 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();
BeanFactoryReference: Class used to track a reference to a BeanFactory obtained through a BeanFactoryLocator. It is safe to call release() 55 multiple times, but getFactory() 55 must not be called after calling release.
BootstrapException: Exception thrown if a bean factory could not be loaded by a bootstrap class.
| Home | Contact Us | Privacy Policy | Terms of Service |