ConfigSource¶
-
public final class
ConfigSource
¶ Represents the source from which MOTECH configuration should be read.
Methods¶
isFile¶
-
public boolean
isFile
()¶ Checks whether this configuration source is FILE or not.
Returns: true if this configuration source is file, false otherwise
isValid¶
valueOf¶
-
public static ConfigSource
valueOf
(String name)¶ Creates proper object of
ConfigSource
class for given name. The correct values are “UI” and “FILE”. If name isn’t one of above MotechConfigurationException will be thrown.Parameters: - name – the name of the configuration source, null and blank String treated as “UI”
Throws: - MotechConfigurationException – when name is neither “FILE” nor “UI”
Returns: proper instance of
ConfigSource