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 aWhiteboardServiceRegistry
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
serviceRegistered(ServiceHolder<T> serviceHolder)
Invoked when a service object is registered.void
serviceUnregistered(ServiceHolder<T> serviceHolder)
Invoked when a service object is unregistered.
-
-
-
Method Detail
-
serviceRegistered
void serviceRegistered(ServiceHolder<T> serviceHolder)
Invoked when a service object is registered.- Parameters:
serviceHolder
- the service object holder
-
serviceUnregistered
void serviceUnregistered(ServiceHolder<T> serviceHolder)
Invoked when a service object is unregistered.- Parameters:
serviceHolder
- the service object holder
-
-