Interface ProviderHandler


  • public interface ProviderHandler
    Base interface for defining a provider type handler.
    • Method Detail

      • getPriority

        int getPriority()
        Gets the priority of current handler. The priority might be used to decide which handler to apply in cases where there are many handlers registered for a given provider. The highest priority one will be applied.
        Returns:
        an integer representing current handler priority. Priorities are correlative to the integers natural order.
      • acceptProviderType

        boolean acceptProviderType​(ProviderTypeKey providerTypeKey)
        Indicates if current handler can manage a given provider type.
        Parameters:
        providerTypeKey - a provider type key.
        Returns:
        true if current handle can manage the given provider type, false in any other case.