public class Environment extends Object
| Constructor and Description |
|---|
Environment() |
| Modifier and Type | Method and Description |
|---|---|
static FileSystem |
getFileSystem()
Retrieves the file system to use for the environment.
|
static org.jboss.modules.ResourceLoader |
getModuleResourceLoader(String rootPath,
String loaderPath,
String loaderName)
Creates a new resource loader for the environment.
|
public static FileSystem getFileSystem()
If running in an archive a zip file system is returned. Otherwise the default is returned.
public static org.jboss.modules.ResourceLoader getModuleResourceLoader(String rootPath, String loaderPath, String loaderName)
In an archive a JarFileResourceLoader is returned. Otherwise a file system based loader is returned.
rootPath - the root path to the moduleloaderPath - the path to the moduleloaderName - the module nameCopyright © 2017 JBoss by Red Hat. All rights reserved.