Package org.hippoecm.frontend.service
Class ServiceTracker<S extends org.apache.wicket.util.io.IClusterable>
- java.lang.Object
-
- org.hippoecm.frontend.service.ServiceTracker<S>
-
- Type Parameters:
S
- the service interface class
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,IServiceTracker<S>
- Direct Known Subclasses:
AbstractRenderService.ExtensionPoint
public class ServiceTracker<S extends org.apache.wicket.util.io.IClusterable> extends Object implements IServiceTracker<S>
Service tracker implementation that is aware of it's class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceTracker(Class<S> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addService(S service, String name)
A service is being registered.protected void
onRemoveService(S service, String name)
protected void
onServiceAdded(S service, String name)
protected void
onServiceChanged(S service, String name)
void
removeService(S service, String name)
A service is being unregistered.
-
-
-
Method Detail
-
addService
public final void addService(S service, String name)
A service is being registered.- Specified by:
addService
in interfaceIServiceTracker<S extends org.apache.wicket.util.io.IClusterable>
- Parameters:
service
- the service that is registeredname
- the name that was used to register the service tracker
-
removeService
public final void removeService(S service, String name)
A service is being unregistered.- Specified by:
removeService
in interfaceIServiceTracker<S extends org.apache.wicket.util.io.IClusterable>
- Parameters:
service
- the service that is unregisteredname
- the name that was used to register the service tracker
-
-