Package org.onehippo.cms7.services
Interface ServiceTracker<T>
- Type Parameters:
T
- The type of the service object to be tracked
public interface ServiceTracker<T>
A ServiceTracker interface implementation can be used to get notified when a service object is (un)registered
in a
WhiteboardServiceRegistry
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
serviceRegistered
(ServiceHolder<T> serviceHolder) Invoked when a service object is registered.void
serviceUnregistered
(ServiceHolder<T> serviceHolder) Invoked when a service object is unregistered.
-
Method Details
-
serviceRegistered
Invoked when a service object is registered.- Parameters:
serviceHolder
- the service object holder
-
serviceUnregistered
Invoked when a service object is unregistered.- Parameters:
serviceHolder
- the service object holder
-