Interface DslPropertyConverter
-
public interface DslPropertyConverterA 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 Summary
Fields Modifier and Type Field Description static DslPropertyConverterDEFAULTDefault no op implementation.static DslPropertyConverterINSTANCEA composite over available instances or default if none is present.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DslPropertyConverterinstance()default ObjectstubSide(Object object)Conversion mechanism for the stub side manipulation.default ObjecttestSide(Object object)Conversion mechanism for the test side manipulation.
-
-
-
Field Detail
-
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 Detail
-
instance
static DslPropertyConverter instance()
- Returns:
- a composite
DslPropertyConverteraround a list ofDslPropertyConverteror 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
-
-