public final class VariableExpansion extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VariableExpansion.MapResolver |
static interface |
VariableExpansion.Resolver |
static class |
VariableExpansion.UnresolvedVariableException |
| Modifier and Type | Field and Description |
|---|---|
static VariableExpansion.Resolver |
ENV_VAR_RESOLVER |
static VariableExpansion.Resolver |
SYS_PROP_RESOLVER |
| Modifier and Type | Method and Description |
|---|---|
static String |
expand(String input,
VariableExpansion.Resolver resolver)
Expands any variables found in the given input string.
|
public static final VariableExpansion.Resolver ENV_VAR_RESOLVER
public static final VariableExpansion.Resolver SYS_PROP_RESOLVER
public static final String expand(String input, VariableExpansion.Resolver resolver) throws VariableExpansion.UnresolvedVariableException, IllegalArgumentException, NullPointerException
input - the string to expand any variables inresolver - the resolver to useVariableExpansion.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 suppliedCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.