All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.mnemonic.services.common.api.Service Maven / Gradle / Ivy

There is a newer version: 0.6.11
Show newest version
package no.mnemonic.services.common.api;

/**
 * Common interface for all services.
 * For now a marker interface, but may be extended to define operations a service has to implement.
 */
public interface Service {

  /**
   *
   * @return the ServiceContext for this service proxy
   * @throws NotAProxyException if this is not a proxy.
   */
  default ServiceContext getServiceContext() throws NotAProxyException {
    throw new NotAProxyException();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy