Interface ISingleImplementationBinder<T>

Type Parameters:
T - Interface of the particular implementations

public interface ISingleImplementationBinder<T>
Allows binding only single implementation of a particular interface in extension points
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears the extension point implementation, and thus falling back to any default behavior
    void
    register(Class<? extends T> implementation)
    Registers an implementation without enabling it.
    void
    set(Class<? extends T> implementation)
    Sets the implementation of the extension point
  • Method Details

    • set

      void set(Class<? extends T> implementation)
      Sets the implementation of the extension point
      Parameters:
      implementation - the implementation class to be instantiated by SAGA
    • clear

      void clear()
      Clears the extension point implementation, and thus falling back to any default behavior
    • register

      void register(Class<? extends T> implementation)
      Registers an implementation without enabling it. Following activation of the implementation can be done through other mechanisms (e.g. interactive UI).
      Parameters:
      implementation - the implementation class to be registered