Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-3
-
Fix Version/s: 1.0-beta-3
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Environment:N/A
-
Number of attachments :
Description
Change "public void registerComponentInstance(Object component)" in MuteablePicoContainer to "public Object registerComponentInstance(Object component)" in such a way that the return value is the key under which the component has been registered. This allows for multipleways to register instances and doesn't force any assumptions on under which key the instance is registered. The user shouldn't have know that the instance internally is the registered as the class. Instead we could return him the key and he can use it for what ever he/she wishes.
Activity
Aslak Hellesøy
made changes -
Field | Original Value | New Value |
---|---|---|
Resolution | Fixed [ 1 ] | |
Status | Unassigned [ 1 ] | Closed [ 6 ] |
Fix Version/s | 1.0 [ 10145 ] |
Aslak Hellesøy
made changes -
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Aslak Hellesøy
made changes -
Affects Version/s | 1.0-beta-3 [ 10232 ] | |
Fix Version/s | 1.0-beta-3 [ 10232 ] | |
Fix Version/s | 1.0 [ 10145 ] |
Aslak Hellesøy
made changes -
Resolution | Fixed [ 1 ] | |
Status | Reopened [ 4 ] | Closed [ 6 ] |
Forgot, we should change "public void registerComponentImplementation(Class componentImplementation)" to "public Object registerComponentImplementation(Class componentImplementation)" so it follows the same pattern.