NanoContainer
  1. NanoContainer
  2. NANO-174

Allow the concept of an AssemblyScope in Deployer

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: deployer
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It would be useful to have the concept of an assembly scope in deployer, just like the rest of NanoContainer's deployment scripts. So a deployer's script could be:

      pico = builder.container(parent:parent) {
      if (assemblyScope instanceof javax.servlet.ServletContext)

      { //etc. }

      }

      The ramifications of how this would integrate with NanoWAR still haven't been thought through, but since the Deployer API doesn't support an assembly scope, it would be good feature-wise to keep it up with the rest of NanoContainer.

      My only real concern is that it would change the actual Deployer Interface. This could be backwards compatible by having deploy() and deploy(Object assemblyScope).

        Activity

        Hide
        Michael Rimov added a comment -

        Fixed. There is now a depracated API that doesn't include deployment scope.

        Show
        Michael Rimov added a comment - Fixed. There is now a depracated API that doesn't include deployment scope.
        Michael Rimov made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 1.1 [ 12307 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: