Interface IServiceMediator


public interface IServiceMediator
  • Method Summary

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

    • addService

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

      <T> T getService(Class<T> serviceClass, 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