Interface IServiceBroker


public interface IServiceBroker
Access specialists and sevices by their id
Author:
I-D Media AG
  • Method Details

    • requestService

      @Nullable <T> T requestService(String SERVICEID, Class<T> type)
      Obtain a Service

      Type Parameters:
      T - Service Instance
      Parameters:
      SERVICEID - internal Service ID
      type - Service Class

      Returns:
      Instance or null
    • requestService

      @Nullable <T> T requestService(String SERVICEID, Class<T> type, boolean bLogExceptions)
      Obtain a Service

      Type Parameters:
      T - Service Instance
      Parameters:
      SERVICEID - internal Service ID
      type - Service Class
      bLogExceptions -
      Returns:
      Instance or null
    • getRegisteredServices

      @NotNull @NotNull List<IServiceModuleState> getRegisteredServices()
      Request a list of all running services and some additional info
      Returns:
    • restartService

      boolean restartService(IServiceModuleState pModule)
      Restart a given module. Make sure that it is not alive!
      Parameters:
      pModule -
      Returns:
      success state