public class ModuleConfigHome extends Object
ModuleContext.registerConfigFile(Object[])
and the container-specific
mechanisms to get notified when the configuration changes.Modifier and Type | Field and Description |
---|---|
protected File |
confHome
Deprecated.
The
File containing the path for the configuration file
(the home directory of the configuration file). |
Modifier | Constructor and Description |
---|---|
protected |
ModuleConfigHome()
Deprecated.
Default constructor to allow overwriting the default implementation.
|
|
ModuleConfigHome(String confHome,
String id)
Deprecated.
Constructor the create a new object for accessing configuration files.
|
Modifier and Type | Method and Description |
---|---|
String |
getAbsolutePath()
Deprecated.
Returns the absolute pathname string of this abstract pathname.
|
OutputStream |
getConfFileAsOutputStream(String filename)
Deprecated.
Get an OutputStream for the file of the given file name in the home
directory of the configuration file.
|
InputStream |
getConfFileAsStream(String filename)
Deprecated.
Get an InputStream for the file of the given file name in the home
directory of the configuration file.
|
File[] |
listFiles()
Deprecated.
List all files in the home directory of the configuration file.
|
protected ModuleConfigHome()
public ModuleConfigHome(String confHome, String id)
getConfFileAsStream(String)
. The directory is created if it does
not exist.confHome
- The home directory.id
- The ID of this module.public String getAbsolutePath()
File.getAbsolutePath()
public InputStream getConfFileAsStream(String filename) throws IOException
filename
- The name of the file.IOException
public OutputStream getConfFileAsOutputStream(String filename) throws IOException
filename
- The name of the file.IOException
public File[] listFiles()
Copyright © 2015 universAAL Consortium. All rights reserved.