Class TransformerKey
Composite lookup key for the
TransformerRegistry, encoding a from-DataType / to-DataType pair
as a single string value for efficient map-based lookup.
The string form is "fromType/toType" when both ends are specified, or just "toType" when the from
side is DataType.ANY (scheme-only transformer that applies to any input type). This normalization ensures
that scheme-based transformers (e.g. all json:* conversions) can be resolved with a single registry lookup
without iterating all registered transformers.- Since:
- 4.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransformerKey(@Nullable String toType) TransformerKey(DataType from, DataType to) -
Method Summary
Modifier and TypeMethodDescriptionstatic TransformerKeycreateFrom(Transformer answer) Create the transformer key for the given transformer either using the transformer name or it's specified from/to data type name.getFrom()getTo()toString()Methods inherited from class ValueHolder
equals, get, hashCode
-
Constructor Details
-
TransformerKey
-
TransformerKey
-
TransformerKey
-
-
Method Details
-
createFrom
Create the transformer key for the given transformer either using the transformer name or it's specified from/to data type name. -
getFrom
-
getTo
-
toString
-