Details
-
Type: New Feature
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-3
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
It would be awfully nice to be able to specify "decorator" picocontainers in NanoContainer. When the pico is retrieved from the nano, it would in fact be a descendent of the real pico, using the chain of decorators.
Specifically, this would let you do something akin to:
nano.addPicoDecorator(AspectablePicoContainer.class)
PicoContainer pico = nano.getPico();
pico would be an AspectablePicoContainer with the "real" pico from the nano as the delegate.
the addPicoDecorator would accept any PicoContainer implementation which it could instantiate (via pico or via getting the constructor).
Activity
Jörg Schaible
made changes -
Paul Hammant
made changes -
Description |
It would be awfully nice to be able to specify "decorator" picocontainers in NanoContainer. When the pico is retrieved from the nano, it would in fact be a descendent of the real pico, using the chain of decorators. Specifically, this would let you do something akin to: nano.addPicoDecorator(AspectablePicoContainer.class) PicoContainer pico = nano.getPico(); pico would be an AspectablePicoContainer with the "real" pico from the nano as the parent. the addPicoDecorator would accept any PicoContainer implementation which it could instantiate (via pico or via getting the constructor). |
It would be awfully nice to be able to specify "decorator" picocontainers in NanoContainer. When the pico is retrieved from the nano, it would in fact be a descendent of the real pico, using the chain of decorators. Specifically, this would let you do something akin to: nano.addPicoDecorator(AspectablePicoContainer.class) PicoContainer pico = nano.getPico(); pico would be an AspectablePicoContainer with the "real" pico from the nano as the delegate. the addPicoDecorator would accept any PicoContainer implementation which it could instantiate (via pico or via getting the constructor). |
Paul Hammant
made changes -
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Implemented