Details
-
Type: Bug
-
Status: Closed
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-5
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
hi,
I've just been porting my application to the latest pico and stumbled accross a very annoying issue and there is no easy way to fix it other then rewriting most parts of the container.
Source of all evil is "getComponentInstanceOfType(Class type)" and that it navigates the whole tree to look for a statisfiable type. Unfortunatly this always results in multiple Adapters if you use the Decorator [GoF] pattern in your code.
I will attach a testcase and would like to get some comments as this is closely linked to
http://jira.codehaus.org/secure/ViewIssue.jspa?key=PICO-105
and I will need to start "fixing" this tommorrow and if the general consent is that Keys I would do part of that refactoring too, but could use some support there.
Issue Links
- depends upon
-
PICO-105 Remove key from ComponentAdapter
Activity
Field | Original Value | New Value |
---|---|---|
Attachment | patch.zip [ 11328 ] |
Attachment | patch.txt [ 11329 ] |
Fix Version/s | 1.0-beta-5 [ 10145 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
run
o.p.d.ComponentKeysTestCase.testComponentKeysTakePrecedenceOverImplementation()