T
- the identifier type to map@ConsumerType
public interface PathIdentifierMapper<T>
Path
to its corresponding identifier, and vice versa.
Instances of PathIdentifierMapper
should only be created for
identifiers used as a single model's identifier. The identifier's class can
then be provided as a parameter in the methods of the different routes
builders.
Modifier and Type | Method and Description |
---|---|
T |
map(Path path)
Converts a path to its corresponding identifier.
|
Path |
map(java.lang.String name,
T t)
Converts an identifier to its corresponding path.
|