mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Fix formatting and add to
This commit is contained in:
parent
1869ec2782
commit
8759b2b6c4
|
@ -131,7 +131,9 @@ Classes with multiple constructors can be injected. The following rules apply to
|
||||||
* Injection is attempted for the first constructor which has non-builtin types only in its parameter list.
|
* Injection is attempted for the first constructor which has non-builtin types only in its parameter list.
|
||||||
* When a constructor with an empty parameter list is found, no other constructors are attempted (and nothing is injected). This can be used to explicitly prevent constructor injection.
|
* When a constructor with an empty parameter list is found, no other constructors are attempted (and nothing is injected). This can be used to explicitly prevent constructor injection.
|
||||||
* When no injectable constructor is found an InstanceCreationException will be thrown on resolve.
|
* When no injectable constructor is found an InstanceCreationException will be thrown on resolve.
|
||||||
|
|
||||||
If the constructors of a class are not suitable for injection, you could manually configure its creation using Application Contexts (see chapter further down).
|
If the constructors of a class are not suitable for injection, you could manually configure its creation using Application Contexts (see chapter further down).
|
||||||
|
Constructor injection has the advantage of not having add dependcies to Poodinis all over your application.
|
||||||
|
|
||||||
Circular dependencies
|
Circular dependencies
|
||||||
---------------------
|
---------------------
|
||||||
|
|
Loading…
Reference in a new issue