public class ExpandableParameter extends Object implements ExpandableToken
ExpandableParameter requires the #ExpandableParameter#parameter to be replaced with an appropriate value.
Each token may be mapped to a ExpandableParameterResolver resolving the token to a value.
If no resolver is found, null is returned.ExpandableParameterResolverRegistry| Constructor and Description |
|---|
ExpandableParameter(String token,
EventUtil eventUtil) |
| Modifier and Type | Method and Description |
|---|---|
String |
expand(Event event,
Map<String,Map<String,String>> decode)
Expands a token.
|
boolean |
requiresTransaction()
Defines if this
ExpandableToken requires a transaction to be expanded. |
public String expand(Event event, Map<String,Map<String,String>> decode)
ExpandableTokenexpand in interface ExpandableTokenevent - An event, to expand the token from. May not be null.decode - A Map, to help expanding the token. May be null.public boolean requiresTransaction()
ExpandableTokenExpandableToken requires a transaction to be expanded.requiresTransaction in interface ExpandableTokenCopyright © 2022. All rights reserved.