-
Notifications
You must be signed in to change notification settings - Fork 2
Object configuration steps
Suremaker edited this page Dec 10, 2012
·
13 revisions
The Spring.FluentContext allows to construct object definition with following steps:
- Definition registration *
- Scope definition
- [Indirect dependencies definition](Indirect object dependencies)
- Object Instantiation
- Lookup Method Injection **
- Autowiring
- Dependency Injection
- Initialization Behavior
- Finalization Behavior
- Dependency checking
- Definition referencing
* If RegisterXXXSingleton() method group is used, 2-10 construction steps would be skipped.
** This step is only accessible if object instantiation is not explicitly specified or is specified by using BindConstructorArg(), UseConstructor()
The API is constructed in this way, that:
- if given step offers different options, it is possible to select only one of them,
- it is possible to skip given step, if it is meaningless for given configuration case
- it is not possible to go back to previous construction step.
Described functionality dramatically decreases chances of creating inconsistent configuration