Package com.adaptris.core.metadata
Class MetadataResolver
- java.lang.Object
-
- com.adaptris.core.metadata.MetadataResolver
-
public class MetadataResolver extends java.lang.Object
This resolver allows you to specify a prefixed ($$) metadata key in configuration whose metadata value will be used as the actual metadata item key lookup.
For example, if I have 3 metadata items, with the following key -- values;
- key1 -- value1
- key2 -- value2
Resolving the key "$$key1" will return the value "value1". Because we prefixed the key with "$$" resolution does take place.This resolver is useful if you do not happen to know during configuration what metadata key you need to perform an action on. Instead this key can be looked up during runtime as the value of a known metadata key.
-
-
Constructor Summary
Constructors Constructor Description MetadataResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
resolveKey(AdaptrisMessage message, java.lang.String key)
-
-
-
Method Detail
-
resolveKey
public static java.lang.String resolveKey(AdaptrisMessage message, java.lang.String key)
-
-