NanoContainer
  1. NanoContainer
  2. NANO-102

Add Decorator Capability to NanoContainer

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-3
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Number of attachments :
      0

      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 -
        Field Original Value New Value
        Key PICO-211 NANO-102
        Project PicoContainer [ 10120 ] NanoContainer [ 10121 ]
        Component/s core [ 10193 ]
        Component/s PicoContainer (Java) [ 10191 ]
        Affects Version/s 1.0-beta-3 [ 11242 ]
        Affects Version/s 1.1 [ 10307 ]
        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).
        Hide
        Paul Hammant added a comment -

        Implemented

        Show
        Paul Hammant added a comment - Implemented
        Paul Hammant made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Brian McCallister
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: