-
Notifications
You must be signed in to change notification settings - Fork 179
Lifecycle Management
Randgalt edited this page Aug 24, 2012
·
26 revisions
There is much more to an object’s lifecyle than just allocation via new
. In particular, there is an important anti-pattern regarding letting this
“escape” from a constructor. This page describes the problem in detail.
In Governator, an object can go through a number of steps in its lifecycle. Annotations are available to define methods for these steps. The steps are:
Allocation (via Guice) | v Pre-Configuration | v Configuration | V Post Construction | V Warm Up
At the end of the application, the object goes through these steps:
Cool Down | v Pre Destroy
- Home
- Getting Started
- Bootstrapping
- Lifecycle Management
- Auto Binding
- Module-Dependencies
- Warm Up
- Configuration Mapping
- Field Validation
- Lazy Singleton
- Concurrent Singleton
- Generic Binding Annotations
- LifecycleListener
- Governator Phases
- Grapher Integration
- JUnit Testing
- FAQ
- Best Practices
- Spring, PicoContainer, Etc.
- Javadoc
- End-to-End Examples