Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4116

Ability to listen for component service dependencies, providings, configuration properties, ...

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ipojo-runtime-1.10
    • Fix Version/s: ipojo-runtime-1.10.1
    • Component/s: iPOJO
    • Labels:
      None
    • Environment:
      N/A

      Description

      iPOJO offers the ability to be notified when a service arrives/is modified/leaves a dependency. However this notifications happens inside the component, via dependency callbacks (@Bind, @Unbind, @Modified).

      What would be cool is to listen to this events externally, with listeners on the DependencyModel.
      Is is possible right now to do this with a hack of the DependencyCallbacks (lots of reflection, ugly code).
      So what just lacks is the API to register/unregister listeners + the listener interface.

      Same thing for service providings : we should be able to be notified when a component start/stop to provide a service. It is possible to listen to all services with the good "instance.name", but this is not really elegant, and there might be issues with isolated ServiceContext (composite). Registering a listener on the ProvidedService seems a better approach IMO.

      Same point for configuration, like the @Updated callback, but external.

      For sure there are lots of other component things to listen to...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clement.escoffier Clement Escoffier
                Reporter:
                pierre.bourret Pierre Bourret
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: