org.springframework.beans.factory |
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
Provides an alternative to the Singleton and Prototype design
patterns, including a consistent approach to configuration management.
Builds on the org.springframework.beans package.
This package and related packages are discussed in Chapter 11 of
Expert One-On-One J2EE Design and Development
by Rod Johnson (Wrox, 2002).
|
Java Source File Name | Type | Comment |
BeanClassLoaderAware.java | Interface | Callback that allows a bean to be aware of the bean
ClassLoader class loader ; that is, the class loader used by the
present bean factory to load bean classes. |
BeanCreationException.java | Class | Exception thrown when a BeanFactory encounters an error when
attempting to create a bean from a bean definition. |
BeanCreationNotAllowedException.java | Class | Exception thrown in case of a bean being requested despite
bean creation currently not being allowed (for example, during
the shutdown phase of a bean factory). |
BeanCurrentlyInCreationException.java | Class | Exception thrown in case of a reference to a bean that's currently in creation. |
BeanDefinitionStoreException.java | Class | Exception thrown when a BeanFactory encounters an internal error, and
its definitions are invalid: for example, if an XML document containing
bean definitions isn't well-formed. |
BeanFactory.java | Interface | The root interface for accessing a Spring bean container.
This is the basic client view of a bean container;
further interfaces such as
ListableBeanFactory and
org.springframework.beans.factory.config.ConfigurableBeanFactory are available for specific purposes.
This interface is implemented by objects that hold a number of bean definitions,
each uniquely identified by a String name. |
BeanFactoryAware.java | Interface | Interface to be implemented by beans that wish to be aware of their
owning
BeanFactory .
For example, beans can look up collaborating beans via the factory
(Dependency Lookup). |
BeanFactoryUtils.java | Class | Convenience methods operating on bean factories, in particular
on the
ListableBeanFactory interface. |
BeanInitializationException.java | Class | Exception that a bean implementation is suggested to throw if its own
factory-aware initialization code fails. |
BeanIsAbstractException.java | Class | |
BeanIsNotAFactoryException.java | Class | Exception thrown when a bean is not a factory, but a user tries to get
at the factory for the given bean name. |
BeanNameAware.java | Interface | Interface to be implemented by beans that want to be aware of their
bean name in a bean factory. |
BeanNotOfRequiredTypeException.java | Class | Thrown when a bean doesn't match the expected type. |
CannotLoadBeanClassException.java | Class | Exception thrown when the BeanFactory cannot load the specified class
of a given bean. |
DisposableBean.java | Interface | Interface to be implemented by beans that want to release resources
on destruction. |
FactoryBean.java | Interface | Interface to be implemented by objects used within a
BeanFactory which are themselves factories. |
FactoryBeanNotInitializedException.java | Class | Exception to be thrown from a FactoryBean's getObject() method
if the bean is not fully initialized yet, for example because it is involved
in a circular reference.
Note: A circular reference with a FactoryBean cannot be solved by eagerly
caching singleton instances like with normal beans. |
HierarchicalBeanFactory.java | Interface | Sub-interface implemented by bean factories that can be part
of a hierarchy. |
InitializingBean.java | Interface | Interface to be implemented by beans that need to react once all their
properties have been set by a BeanFactory: for example, to perform custom
initialization, or merely to check that all mandatory properties have been set. |
ListableBeanFactory.java | Interface | Extension of the
BeanFactory interface to be implemented by bean factories
that can enumerate all their bean instances, rather than attempting bean lookup
by name one by one as requested by clients. |
NamedBean.java | Interface | Counterpart of BeanNameAware. |
NoSuchBeanDefinitionException.java | Class | Exception thrown when a BeanFactory is asked for a bean
instance name for which it cannot find a definition. |
ObjectFactory.java | Interface | Defines a factory which can return an Object instance
(possibly shared or independent) when invoked.
This interface is typically used to encapsulate a generic factory which
returns a new instance (prototype) of some target object on each invocation.
This interface is similar to FactoryBean, but implementations of the latter
are normally meant to be defined as instances by the user in a BeanFactory,
while implementations of this class are normally meant to be fed as a property
to other beans. |
SmartFactoryBean.java | Interface | Extension of the
FactoryBean interface. |
UnsatisfiedDependencyException.java | Class | Exception thrown when a bean depends on other beans or simple properties
that were not specified in the bean factory definition, although
dependency checking was enabled. |