|
[Deprecated API] | ||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | CURRENT API | |||||||||
See:
Description
| Interface Summary | |
| BeanFactory | Interface to be implemented by objects that hold a number of bean definitions, each uniquely identified by a String name. |
| FactoryBean | Interface to be implemented by objects used within a BeanFactory that are themselves factories. |
| InitializingBean | Interface to be implemented by beans that need to react once all their properties have been set by a BeanFactory: for example, to perform initialization, or merely to check that all mandatory properties have been set. |
| Lifecycle | Interface to be implemented by beans that wish to be notified of lifecycle events by their owning BeanFactory. |
| ListableBeanFactory | Extension of BeanFactory 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. |
| Exception Summary | |
| BeanDefinitionStoreException | 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. |
| BeanIsNotAFactoryException | Exception thrown when a bean is not a factory, but a user tries to get at the factory for the given bean name. |
| BeanNotOfRequiredTypeException | Thrown when a bean doesn't match the required type |
| NoSuchBeanDefinitionException | Exception thrown when a BeanFactory is asked for a bean instance name for which it cannot find a definition. |
Package providing an alternative to the Singleton and Prototype design patterns, including a consistent approach to configuration management. It builds on the com.interface21.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).