public class DefaultEnvironment extends Object implements Environment
conf/**.json
scripts/groovy/**.groovy
tmp/
Constructor and Description |
---|
DefaultEnvironment(File base)
Builds a new file based
Environment using the given file as the base directory. |
Modifier and Type | Method and Description |
---|---|
File |
getBaseDirectory()
Returns the base directory of the OpenIG file system.
|
File |
getConfigDirectory()
Returns the directory that contains the configuration files.
|
File |
getScriptDirectory(String type)
Returns the directory that contains the files of the given type.
|
File |
getTempDirectory()
Returns the temporary directory of OpenIG (where we have read+write permissions).
|
public DefaultEnvironment(File base)
Environment
using the given file as the base directory.base
- OpenIG base directorypublic File getBaseDirectory()
Environment
getBaseDirectory
in interface Environment
public File getTempDirectory()
Environment
getTempDirectory
in interface Environment
public File getScriptDirectory(String type)
Environment
getScriptDirectory
in interface Environment
type
- script's type (could be groovy or js)public File getConfigDirectory()
Environment
getConfigDirectory
in interface Environment
Copyright © 2025 Open Identity Platform Community. All rights reserved.