PicoContainer
  1. PicoContainer
  2. PICO-398

PicoVisitor not functioning well when combined with Delegating containers + makeChildContainer().

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Step1:

      DelegateContainerParent -> DefaultPico1

      Step 2:

      ChildDelegate = DelegateContainerParent.makeChildContainer();

      which will give us (ChildDelegate -> DefaultPico2)

      Step 3: Apply a visitor to DelegateContainerParent

      End Result:
      Currently Visit Order will be:

      DelegateContainerParent, DefaultPico1, DefaultPico2
      

      And ChildDelegate will be left out of the loop completely.

      This is because DefaultPicoContainer's visit container method visits all the child containers.

      The way visitor stuff is working, I don't really see a simple way to fix this?

        People

        • Assignee:
          Paul Hammant
          Reporter:
          Michael Rimov
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated: