Interface IServiceReference<T extends org.apache.wicket.util.io.IClusterable>

  • Type Parameters:
    T - the service interface of the referenced service
    All Superinterfaces:
    org.apache.wicket.util.io.IClusterable, org.apache.wicket.model.IDetachable, Serializable

    public interface IServiceReference<T extends org.apache.wicket.util.io.IClusterable>
    extends org.apache.wicket.model.IDetachable
    A reference to a service. This identifies a service by the service id assigned to it by the plugin manager.

    The service reference is cross-page safe. I.e. if a service lives on a different Page B, then this reference can still be serialized on Page A.

    This interface is not intended to be implemented by clients, the plugin framework will make instances available.

    • Method Detail

      • getService

        T getService()
        The referenced service.
        Returns:
        the service
      • getServiceId

        String getServiceId()
        The id for the service.
        Returns:
        the id of the service