Interface DslPropertyConverter


public interface DslPropertyConverter
A hook mechanism to allow external languages and frameworks to convert types that are not in Java for Spring Cloud Contract to understand.
Since:
2.2.0
Author:
Marcin Grzejszczak
  • Field Details

    • DEFAULT

      static final DslPropertyConverter DEFAULT
      Default no op implementation.
    • INSTANCE

      static final DslPropertyConverter INSTANCE
      A composite over available instances or default if none is present.
  • Method Details

    • instance

      static DslPropertyConverter instance()
      Returns:
      a composite DslPropertyConverter around a list of DslPropertyConverter or a default no op instance
    • testSide

      default Object testSide(Object object)
      Conversion mechanism for the test side manipulation.
      Parameters:
      object - object to manipulate
      Returns:
      converted object for the test side
    • stubSide

      default Object stubSide(Object object)
      Conversion mechanism for the stub side manipulation.
      Parameters:
      object - object to manipulate
      Returns:
      converted object for the stub side