Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
If a multicasting proxy was supplied when there are multiple implementations of an interface, instead of throwing AmbiguousComponentResolutionException, pico would have a way of broadcasting events to pico components from within pico components.
I've supplied a patch with a unit test which illustrates what I mean. The patch also makes the test pass (its only about 10 lines). Of course this causes the AmbiguousComponentResolutionException to fail.
I'm not sure if this is better but it would be more explicit if pico only created a multicasting proxy for interfaces which extend the marker interface java.util.EventListener.
Activity
Thomas Rynne
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | patch.txt [ 10625 ] |
Aslak Hellesøy
made changes -
Assignee | Aslak Hellesoy [ rinkrank ] | |
Status | Unassigned [ 1 ] | Assigned [ 2 ] |
Aslak Hellesøy
made changes -
Status | Assigned [ 2 ] | In Progress [ 3 ] |
Aslak Hellesøy
made changes -
Affects Version/s | 1.0-beta-2 [ 10217 ] | |
Fix Version/s | 1.0-beta-2 [ 10217 ] |
Aslak Hellesøy
made changes -
Fix Version/s | 1.0 [ 10145 ] | |
Affects Version/s | 1.0 [ 10145 ] | |
Priority | Minor [ 4 ] | Major [ 3 ] |
Fix Version/s | 1.0-beta-2 [ 10217 ] | |
Affects Version/s | 1.0-beta-2 [ 10217 ] |
Chris Stevenson
made changes -
Status | In Progress [ 3 ] | Assigned [ 2 ] |
Assignee | Aslak Hellesoy [ rinkrank ] | Chris Stevenson [ skizz ] |
Aslak Hellesøy
made changes -
Affects Version/s | 1.0 [ 10145 ] | |
Fix Version/s | 1.0 [ 10145 ] | |
Fix Version/s | 1.0.1 [ 10307 ] | |
Affects Version/s | 1.0.1 [ 10307 ] |
Aslak Hellesøy
made changes -
Resolution | Won't Fix [ 2 ] | |
Fix Version/s | 1.0.1 [ 10307 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
A patch which adds a unit test and patches DefaultComponentRegistry so the test passes.