Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.3
-
Fix Version/s: 2.0
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Environment:Not applicable
-
Number of attachments :
Description
I was thinking if PicoContainer could also provide some selective dependency injection i.e. if we have two objects of a similar kind, the object that needs to be provided to the Servlet should be nearest in hierarchy of inhereitance.
For example
If I have a interface Feature
And there is one implementation of Feature called OldFeature
And there is another implementation of Feature called NewFeature
Should an object called User require Feature, then automatically the NewFeature should be provided to it.
This should in someway solve the versioning problem.
Activity

Field | Original Value | New Value |
---|---|---|
Affects Version/s | 1.1 [ 10307 ] | |
Assignee | Joerg Schaible [ joehni ] | |
Fix Version/s | 1.3 [ 11331 ] |

Affects Version/s | 1.1 [ 10307 ] | |
Affects Version/s | 2.3 [ 14303 ] |

Fix Version/s | 2.3 [ 14303 ] | |
Fix Version/s | 1.3 [ 11331 ] |

Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 2.0 [ 10411 ] | |
Fix Version/s | 2.3 [ 14303 ] |
I missed the relationship in the previous example
class OldFeature implements Feature
class NewFeature extends OldFeature
class FeatureUser {
public FeatureUser ( Feature feature)
{ // can i get an instance of NewFeature }}