Class ServiceTracker<S>

java.lang.Object
org.camunda.bpm.container.impl.jboss.util.ServiceTracker<S>
Type Parameters:
S - the type of the service to track
All Implemented Interfaces:
org.jboss.msc.service.LifecycleListener

public class ServiceTracker<S> extends Object implements org.jboss.msc.service.LifecycleListener

Service Listener that adds / removes services to / from a collection as they are added / removed to the service controller.

Author:
Daniel Meyer
  • Field Details

    • serviceCollection

      protected Collection<S> serviceCollection
    • typeToTrack

      protected org.jboss.msc.service.ServiceName typeToTrack
  • Constructor Details

    • ServiceTracker

      public ServiceTracker(org.jboss.msc.service.ServiceName typeToTrack, Collection<S> serviceCollection)
  • Method Details

    • handleEvent

      public void handleEvent(org.jboss.msc.service.ServiceController<?> controller, org.jboss.msc.service.LifecycleEvent event)
      Specified by:
      handleEvent in interface org.jboss.msc.service.LifecycleListener