@FunctionalInterface public interface AvailableVariables
| Modifier and Type | Method and Description |
|---|---|
default AvailableVariables |
and(AvailableVariables next)
Obtain an
AvailableVariables function that first checks this instance and then checks the supplied instance. |
static AvailableVariables |
configVariables(Configuration config)
Get an
AvailableVariables that returns the value of a Configuration
property. |
static AvailableVariables |
empty()
Get an
AvailableVariables that always returns null. |
static AvailableVariables |
environmentVariables(Configuration config)
Get an
AvailableVariables that returns System environment variables set with
operating system environment variables (e.g., ${JAVA_HOME}). |
static AvailableVariables |
systemVariables(Configuration config)
|
String |
variableForName(String varName)
Obtain the value of a variable with the given name.
|
static AvailableVariables configVariables(Configuration config)
AvailableVariables that returns the value of a Configuration
property.config - the configurationstatic AvailableVariables systemVariables(Configuration config)
AvailableVariables that returns System properties set with
-Dvariable=value.
This method does not use the configuration.
config - the configurationstatic AvailableVariables environmentVariables(Configuration config)
AvailableVariables that returns System environment variables set with
operating system environment variables (e.g., ${JAVA_HOME}).
This method does not use the configuration.
config - the configurationstatic AvailableVariables empty()
AvailableVariables that always returns null.String variableForName(String varName)
varName - the variable name; may be nulldefault AvailableVariables and(AvailableVariables next)
AvailableVariables function that first checks this instance and then checks the supplied instance.next - the next AvailableVariables instance to checkAvailableVariables function that combines both instances; never null but may be this instance if
next is null or Copyright © 2021 JBoss by Red Hat. All rights reserved.