ModulePropertiesRecord¶
-
public class
ModulePropertiesRecord
¶ Class representing a record of a certain module properties. This class is exposed as an
org.motechproject.mds.annotations.Entity
through Motech Data Services.See also:
org.motechproject.mds.annotations
Constructors¶
ModulePropertiesRecord¶
-
public
ModulePropertiesRecord
(Map<String, Object> properties, String bundle, String version, String filename, boolean raw)¶ Constructor.
Parameters: - properties – the module properties
- bundle – the modules bundle symbolic name
- version – the version of the module
- filename – the name of the file containing module properties
- raw – the flag defining whether the properties are raw or not
ModulePropertiesRecord¶
-
public
ModulePropertiesRecord
(Properties props, String bundle, String version, String filename, boolean raw)¶ Constructor.
Parameters: - props – the module properties
- bundle – the modules bundle symbolic name
- version – the version of the module
- filename – the name of the file containing modules properties
- raw – the flag defining whether the properties are raw or not
Methods¶
buildFrom¶
-
public static ModulePropertiesRecord
buildFrom
(File file)¶ Builds an instance of
ModulePropertiesRecord
from given file. Content of the file must match format specified inProperties.load(Reader)
. Properties files are treated as raw configuration files.Parameters: - file – the source file, null returns null
Returns: the instance of
ModulePropertiesRecord
, null if error occurred