public interface VariableRegistry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INSTALL_DIR
The variable literal for obtaining the server install location.
|
static java.lang.String |
SERVER_CONFIG_DIR
The variable literal for obtaining the server configuration directory.
|
static java.lang.String |
SERVER_NAME
The variable literal for obtaining the server name.
|
static java.lang.String |
SERVER_OUTPUT_DIR
The variable literal for obtaining the server output directory.
|
static java.lang.String |
SHARED_APPS_DIR
The variable literal for obtaining the shared applications directory.
|
static java.lang.String |
SHARED_CONFIG_DIR
The variable literal for obtaining the shared configuration directory.
|
static java.lang.String |
SHARED_RESC_DIR
The variable literal for obtaining the shared resources directory.
|
static java.lang.String |
USER_DIR
The variable literal for obtaining the server user directory.
|
static java.lang.String |
USER_EXTENSION_DIR
The variable literal for obtaining the usr product extension directory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addVariable(java.lang.String variable,
java.lang.String value)
Add a variable to the registry with the specified value if it does not exist already.
|
void |
removeVariable(java.lang.String variable)
Remove the specified variable from the registry.
|
void |
replaceVariable(java.lang.String variable,
java.lang.String value)
Update the variable in the registry with the specified value.
|
java.lang.String |
resolveRawString(java.lang.String string)
Resolve the variables in the given string.
|
java.lang.String |
resolveString(java.lang.String string)
Resolve the variables in the given string.
|
static final java.lang.String SERVER_NAME
static final java.lang.String INSTALL_DIR
static final java.lang.String USER_DIR
static final java.lang.String USER_EXTENSION_DIR
static final java.lang.String SERVER_CONFIG_DIR
static final java.lang.String SERVER_OUTPUT_DIR
static final java.lang.String SHARED_APPS_DIR
static final java.lang.String SHARED_CONFIG_DIR
static final java.lang.String SHARED_RESC_DIR
boolean addVariable(java.lang.String variable, java.lang.String value)
variable
- the name of the variable.value
- the value of the variable.void replaceVariable(java.lang.String variable, java.lang.String value)
variable
- the name of the variable.value
- the value of the variable.java.lang.String resolveString(java.lang.String string)
string
- the string to resolve.java.lang.String resolveRawString(java.lang.String string)
string
- the string to resolve.void removeVariable(java.lang.String variable)
variable
-