PicoContainer
  1. PicoContainer
  2. PICO-81

ContainerAssembler scope parameter as Object

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-5
    • Fix Version/s: None
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Number of attachments :
      1

      Description

      The integration kit package defines the ContainerAssembler concept, which is responsible for assembling a PicoContainer based on a scope. This enhancement proposes to change the scope parameter type from String to Object.

      Rationale:
      In the servlet pico-extras sub-project, scopes used are "application", "session" and "request". Chaning scopes to ServletContext, HttpSession and HttpRequest, would facilitate (if not make possible?) integration with legacy code tied to the servlet environment.

      Example:
      Wrapping OSCache in a pico component to use in WW2 actions. OSCache needs ServletContext, which is not available at container assembly. If scope was ServletContext, it would be possible.

        Issue Links

          Activity

          Hide
          Aslak Hellesøy added a comment -

          Do you have a patch?

          Show
          Aslak Hellesøy added a comment - Do you have a patch?
          Aslak Hellesøy made changes -
          Field Original Value New Value
          Assignee Joe Walnes [ jwalnes1 ]
          Hide
          Vincent Tence added a comment -

          This patch realizes the proposed enhancement and also fixes PICO-75

          Show
          Vincent Tence added a comment - This patch realizes the proposed enhancement and also fixes PICO-75
          Vincent Tence made changes -
          Attachment PICO-81&75.txt [ 11142 ]
          Aslak Hellesøy made changes -
          Link This issue depends upon PICO-75 [ PICO-75 ]
          Hide
          Aslak Hellesøy added a comment -

          Thanks Vincent! Hope PICO-74, PICO-75 and PICO-81 are out of the world now. Please reopen if not.

          Show
          Aslak Hellesøy added a comment - Thanks Vincent! Hope PICO-74 , PICO-75 and PICO-81 are out of the world now. Please reopen if not.
          Aslak Hellesøy made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Joe Walnes [ jwalnes1 ] Aslak Hellesoy [ rinkrank ]

            People

            • Assignee:
              Aslak Hellesøy
              Reporter:
              Vincent Tence
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: