public class GatewayEnvironment extends EnvironmentDelegate
Environment
built from a webapp.
It tries to create an environment from different sources (process-scoped values or default location).
It goes from the most specific one (process-scoped values) to the default one (default platform specific location).Modifier and Type | Field and Description |
---|---|
static String |
BASE_ENV_VARIABLE
Environment variable name.
|
static String |
BASE_SYSTEM_PROPERTY
System property name that can be specified through command line.
|
static String |
INSTANCE_ENV_VARIABLE
Environment variable name.
|
static String |
INSTANCE_SYSTEM_PROPERTY
System property name that can be specified through command line.
|
Constructor and Description |
---|
GatewayEnvironment()
Builds a new web environment.
|
Modifier and Type | Method and Description |
---|---|
protected Environment |
delegate()
Returns the environment delegatee.
|
getBaseDirectory, getConfigDirectory, getScriptDirectory, getTempDirectory
public static final String BASE_SYSTEM_PROPERTY
java -Dopenig.base=/my/openig/path ....
public static final String BASE_ENV_VARIABLE
export OPENIG_BASE=/my/openig/path
Under Windows:
set OPENIG_BASE=c:\my\openig\path
public static final String INSTANCE_SYSTEM_PROPERTY
java -Dig.instance.dir=/my/openig/path ....
public static final String INSTANCE_ENV_VARIABLE
export IG_INSTANCE_DIR=/my/openig/path
Under Windows:
set IG_INSTANCE_DIR=c:\my\openig\path
protected Environment delegate()
EnvironmentDelegate
delegate
in class EnvironmentDelegate
Copyright 2011-2017 ForgeRock AS.