Package org.apache.qpid.jms.util
Class VariableExpansion
java.lang.Object
org.apache.qpid.jms.util.VariableExpansion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interfacestatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VariableExpansion.Resolverstatic final VariableExpansion.Resolver -
Method Summary
Modifier and TypeMethodDescriptionstatic final Stringexpand(String input, VariableExpansion.Resolver resolver) Expands any variables found in the given input string.
-
Field Details
-
ENV_VAR_RESOLVER
-
SYS_PROP_RESOLVER
-
-
Method Details
-
expand
public static final String expand(String input, VariableExpansion.Resolver resolver) throws VariableExpansion.UnresolvedVariableException, IllegalArgumentException, NullPointerException Expands any variables found in the given input string.- Parameters:
input- the string to expand any variables inresolver- the resolver to use- Returns:
- the expanded output
- Throws:
VariableExpansion.UnresolvedVariableException- If a variable without a default can't be expanded because it (or indirectly its value) is not resolvable.IllegalArgumentException- if an argument can't be expanded due to other issue with the input.NullPointerException- if a resolver is not supplied
-