public class UseKeyAsServiceIdValueMatcher extends java.lang.Object implements MetadataValueMatcher
MetadataValueBranchingService
which returns the serviceKey as identifier of
the next Service to apply.
This simply allows MetadataValueBranchingService to be used without maintaining a set of mappings between metadata keys and service IDs where the relationship is 1 to 1.
In the adapter configuration file this class is aliased as use-key-as-service-id-value-matcher which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
UseKeyAsServiceIdValueMatcher() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNextServiceId(java.lang.String serviceKey,
KeyValuePairBag mappings)
Get the next service id from the mapping.
|
public java.lang.String getNextServiceId(java.lang.String serviceKey, KeyValuePairBag mappings)
MetadataValueMatcher
getNextServiceId
in interface MetadataValueMatcher
serviceKey
- the service key generated from metadatamappings
- the list of mappings from
MetadataValueBranchingService.getMetadataToServiceIdMappings()