Interface Services

  • All Known Implementing Classes:
    SimpleServiceProvider

    public interface Services
    Provides access to various services within the application from plugin contexts
    • Method Detail

      • hasService

        boolean hasService​(java.lang.Class<? extends AppService> type)
        Parameters:
        type - service type
        Returns:
        true if the service type is available
      • getService

        default <T extends AppService> T getService​(java.lang.Class<T> type)
        Returns the service of the given type if available
        Type Parameters:
        T - service tye
        Parameters:
        type - type class
        Returns:
        service
        Throws:
        java.lang.IllegalStateException - if the requested service type is not available
      • combine

        default Services combine​(Services other)
        Returns:
        combined services