Interface SpecificationTranslator<C,​T>

  • Type Parameters:
    C - the type of the translation context object.
    T - the type of the translated target object.

    public interface SpecificationTranslator<C,​T>
    Translates a Specification into a target object by invoking the relevant SpecificationConverters.
    • Method Detail

      • translate

        <S extends Specification<?>> T translate​(S specification,
                                                 C context)
        Translates the specified composite specification into a target object.
        Type Parameters:
        S - the type of the specification to translate.
        Parameters:
        specification - the Specification to translate.
        context - the translation context.
        Returns:
        the target object representing the fully translated specification.
      • getContextClass

        Class<C> getContextClass()
        Returns the class of translation context.
        Returns:
        the class of the translation context object.
      • getTargetClass

        Class<T> getTargetClass()
        Returns the class of target object.
        Returns:
        the class of the target object.