Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-RC-1
-
Fix Version/s: 1.0-RC-1
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
The current implementation of ConstructorInjectionComponentAdapter (former ConstructorComponentAdapter) is somewhat inefficient. The search for the best ctor is called at instantiation time two or three times. Also the search algorithm itself can be improved by preselection, smart search order and cutting the search if an optimal ctor was found.
An upcoming patch will address this with just a very small change in behaviour: In case of a TooManySatisfiableConstructorsException all ctors that could have been satisfied are reported, not only the ones with the largest arity.
Activity
Jörg Schaible
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | ConstructorInjectionComponentAdapter.java.diff [ 11597 ] |
Jörg Schaible
made changes -
Attachment | InstantiatingComponentAdapter.java.diff [ 11598 ] |
Jörg Schaible
made changes -
Attachment | AbstractMultipleConstructorTestCase.java.diff [ 11599 ] |
Aslak Hellesøy
made changes -
Assignee | Aslak Hellesoy [ rinkrank ] | |
Fix Version/s | 1.0-RC-1 [ 10461 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
ConstructorInjectionComponentAdapter.java.diff