hk2
  1. hk2
  2. HK2-55

Adapt hk2 config subsystem to use the new hk2 ServiceLocator

    Details

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

      Description

      The current config system uses old artifacts like Habitat, Inhabitant, LazyInhabitant etc. We need to modify config subsystem to use the new artifacts like ServiceLocator, Descriptor etc.

        Activity

        Hide
        Mahesh Kannan added a comment -

        The config sub-system will populate the ServiceLocator with the Descriptor objects. Each descriptor can later be used to obtain
        the actual ConfigBean object (lazily). Before parsing the domain.xml (or some xml representing the config beans), the
        ServiceLocator must be populated with the ConfigInjector descriptors. The ConfigInjectors are simple HK2 Service
        objects and hence there will be an entry in the inhabitants file.

        The entire task of populating the ServiceLocator with config beans will be triggered by HK2 using Populator(s)
        which are HK2 Services themselves.

        So, for the config sub-system to be ported to the new HK2, HK2 must parse the inhabitants file and populate the
        ServiceLocator with the appropriate Descriptor objects.

        Show
        Mahesh Kannan added a comment - The config sub-system will populate the ServiceLocator with the Descriptor objects. Each descriptor can later be used to obtain the actual ConfigBean object (lazily). Before parsing the domain.xml (or some xml representing the config beans), the ServiceLocator must be populated with the ConfigInjector descriptors. The ConfigInjectors are simple HK2 Service objects and hence there will be an entry in the inhabitants file. The entire task of populating the ServiceLocator with config beans will be triggered by HK2 using Populator(s) which are HK2 Services themselves. So, for the config sub-system to be ported to the new HK2, HK2 must parse the inhabitants file and populate the ServiceLocator with the appropriate Descriptor objects.
        Hide
        tlcksnyder added a comment -

        Done & available in 2.1.37

        Show
        tlcksnyder added a comment - Done & available in 2.1.37

          People

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

            Dates

            • Created:
              Updated:
              Resolved: