Interface IServiceTracker<S extends org.apache.wicket.util.io.IClusterable>

Type Parameters:
S - the type of the service to track
All Superinterfaces:
org.apache.wicket.util.io.IClusterable, Serializable
All Known Implementing Classes:
AbstractRenderService.ExtensionPoint, ListRenderService.ExtensionPoint, RenderService.ExtensionPoint, ServiceTracker

public interface IServiceTracker<S extends org.apache.wicket.util.io.IClusterable> extends org.apache.wicket.util.io.IClusterable
The service tracker interface makes service registry events accessible to plugins. This is particularly useful for plugins that provide extension points. Those extension points will be populated by other plugins by their registration of additional services. A service tracker allows the extension point provider by responding in an appropriate manner.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addService(S service, String name)
    A service is being registered.
    void
    removeService(S service, String name)
    A service is being unregistered.
  • Method Details

    • addService

      void addService(S service, String name)
      A service is being registered.
      Parameters:
      service - the service that is registered
      name - the name that was used to register the service tracker
    • removeService

      void removeService(S service, String name)
      A service is being unregistered.
      Parameters:
      service - the service that is unregistered
      name - the name that was used to register the service tracker