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
Service Listener that adds / removes services to / from a collection as they are added / removed to the service controller.
- Author:
- Daniel Meyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<S>protected org.jboss.msc.service.ServiceName -
Constructor Summary
ConstructorsConstructorDescriptionServiceTracker(org.jboss.msc.service.ServiceName typeToTrack, Collection<S> serviceCollection) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(org.jboss.msc.service.ServiceController<?> controller, org.jboss.msc.service.LifecycleEvent event)
-
Field Details
-
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:
handleEventin interfaceorg.jboss.msc.service.LifecycleListener
-