Interface IServiceMediator


public interface IServiceMediator
  • Method Summary

    Modifier and Type Method Description
    void addService​(java.lang.String serviceName, java.lang.Object serviceInstance)
    Add a service to the ServiceMediator.
    <T> T getService​(java.lang.Class<T> serviceClass, java.lang.String serviceName)
    Gets a service from the ServiceMediator
  • Method Details

    • addService

      void addService​(java.lang.String serviceName, java.lang.Object serviceInstance)
      Add a service to the ServiceMediator.
      Parameters:
      serviceName - The ServiceName
      serviceInstance - The ServiceInstance
    • getService

      <T> T getService​(java.lang.Class<T> serviceClass, java.lang.String serviceName)
      Gets a service from the ServiceMediator
      Type Parameters:
      T - The type of the Service
      Parameters:
      serviceClass - The ServiceClass you expect
      serviceName - The ServiceName
      Returns:
      The ServiceInstance