Interface IMultipleImplementationsBinder<T>

Type Parameters:
T - Common interface of all the implementations

public interface IMultipleImplementationsBinder<T>
Allows binding multiple implementations of a particular interface in extension points
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Class<? extends T> implementation)
    Adds an implementation to this extension point.
    void
    Clears all implementations from the extension point, and thus falling back to default behaviour.
    void
    register(Class<? extends T> implementation)
    Registers an implementation without enabling it.
    void
    remove(Class<? extends T> implementation)
    Removes a specific implementation from the extension point.
  • Method Details

    • add

      void add(Class<? extends T> implementation)
      Adds an implementation to this extension point. Multiple implementations can be registered for this extension point. If you wish to remove already registered implementations use either the remove(Class) or the clear() method
      Parameters:
      implementation - the implementation class to be instantiated by SAGA
    • remove

      void remove(Class<? extends T> implementation)
      Removes a specific implementation from the extension point.
      Parameters:
      implementation - the implementation class to be removed
    • 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
    • clear

      void clear()
      Clears all implementations from the extension point, and thus falling back to default behaviour.