Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4154

Discuss distribution components creation and configuration

    XMLWordPrintableJSON

Details

    Description

      Distribution has one main component (agent) and several secondary components (triggers, exporters and importers).

      These can be created as java objects using a DistributionComponentFactory. The core framework provides a DefaultDistributionComponentFactory that will create the components implemented in the core but a client can define its own components and factory and the default component factory will use those to create a component it does not know of.

      The core framework also provides two ways of registering such a java object as an OSGI service:
      1. using osgi configs, the osgi properties are parsed and passed to the factory, a component is created and registered (GenericDistributionComponentFactory)
      2. resource configs, the properties of a resource are parsed and passed to the factory, a component is created and registered (ResourceBasedDistributionComponentFactory)

      Components registered as OSGI services are available as resources via OsgiServicePropertiesResourceProvider.

      Attachments

        Activity

          People

            mpetria Marius Petria
            mpetria Marius Petria
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: