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).
| Modifier and Type | Interface and Description |
|---|---|
| public interface | Aware
A marker superinterface indicating that a bean is eligible to be notified by the Spring container of a particular framework object through a callback-style method. |
| public interface | BeanClassLoaderAware
Callback that allows a bean to be aware of the bean
|
| public interface | BeanFactory
The root interface for accessing a Spring bean container. |
| public interface | BeanFactoryAware
Interface to be implemented by beans that wish to be aware of their
owning |
| public interface | BeanNameAware
Interface to be implemented by beans that want to be aware of their bean name in a bean factory. |
| public interface | DisposableBean
Interface to be implemented by beans that want to release resources on destruction. |
| public interface | FactoryBean<
the bean type T>Interface to be implemented by objects used within a |
| public interface | HierarchicalBeanFactory
Sub-interface implemented by bean factories that can be part of a hierarchy. |
| public interface | InitializingBean
Interface to be implemented by beans that need to react once all their properties
have been set by a |
| public interface | ListableBeanFactory
Extension of the |
| public interface | NamedBean
Counterpart of |
| public interface | ObjectFactory<
the object type T>Defines a factory which can return an Object instance (possibly shared or independent) when invoked. |
| public interface | ObjectProvider<
the object type T>A variant of |
| public interface | |
| public interface | SmartInitializingSingleton
Callback interface triggered at the end of the singleton pre-instantiation phase
during |
| Modifier and Type | Class and Description |
|---|---|
| public class | BeanCreationException
Exception thrown when a BeanFactory encounters an error when attempting to create a bean from a bean definition. |
| public class | BeanCreationNotAllowedException
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). |
| public class | BeanCurrentlyInCreationException
Exception thrown in case of a reference to a bean that's currently in creation. |
| public class | BeanDefinitionStoreException
Exception thrown when a BeanFactory encounters an invalid bean definition: e.g. in case of incomplete or contradictory bean metadata. |
| public class | BeanExpressionException
Exception that indicates an expression evaluation attempt having failed. |
| public abstract class | BeanFactoryUtils
Convenience methods operating on bean factories, in particular
on the |
| public class | BeanInitializationException
Exception that a bean implementation is suggested to throw if its own factory-aware initialization code fails. |
| public class | BeanIsAbstractException
Exception thrown when a bean instance has been requested for a bean definition which has been marked as abstract. |
| public class | BeanIsNotAFactoryException
Exception thrown when a bean is not a factory, but a user tries to get at the factory for the given bean name. |
| public class | BeanNotOfRequiredTypeException
Thrown when a bean doesn't match the expected type. |
| public class | CannotLoadBeanClassException
Exception thrown when the BeanFactory cannot load the specified class of a given bean. |
| public class | FactoryBeanNotInitializedException
Exception to be thrown from a FactoryBean's |
| public class | InjectionPoint
A simple descriptor for an injection point, pointing to a method/constructor parameter or a field. |
| public class | NoSuchBeanDefinitionException
Exception thrown when a |
| public class | NoUniqueBeanDefinitionException
Exception thrown when a |
| public class | UnsatisfiedDependencyException
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. |