Interface ExtensionAdder<T,​E extends Extension<T>>

    • Method Detail

      • getExtensionClass

        Class<? super E> getExtensionClass()
        Returns the class of the extension. This is expected to be an interface so that multiple implementors can implement the same extensions. This will be the key at which the extension is added on the extendable. This is meant to be implemented by adder interfaces but not by adder implementations.
        Returns:
        the interface of the extension
      • add

        T add()
        Builds and adds the extension to the extendable which was used to get this extensionAdder. The extendable is returned to allow a fluent style adding of multiple extensions.
        Returns:
        the extendable