Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Implement an @Immediate optional scope that would create services in it as soon as they were added to the ServiceLocator. When services in this scope are unbound from the ServiceLocator they would be destroyed.

      Some thought would have to be given as to how to handle errors from @Immediate services. One thought would be to add something to the ErrorService that would handle failures from these services. Or there can be some separate mechanism associated with the scope for handling errors.

        Issue Links

          Activity

          Hide
          jwells added a comment -

          I've implemented an @Immediate scope. You have to explicitly enable it with the ServiceLocatorUtilities.enableImmediateScope method call, but after you do that any service in the @Immediate scope will be started as soon as hk2 notices that they have been added.

          I am keeping this open for a little bit, as there are a couple of improvements to the feature that still need to be made.

          Show
          jwells added a comment - I've implemented an @Immediate scope. You have to explicitly enable it with the ServiceLocatorUtilities.enableImmediateScope method call, but after you do that any service in the @Immediate scope will be started as soon as hk2 notices that they have been added. I am keeping this open for a little bit, as there are a couple of improvements to the feature that still need to be made.
          Hide
          jwells added a comment -

          @Immediate scope services are now available

          Show
          jwells added a comment - @Immediate scope services are now available
          Hide
          saden added a comment -

          Awesome!

          Show
          saden added a comment - Awesome!

            People

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

              Dates

              • Created:
                Updated:
                Resolved: