Package com.suse.common.configuration
Class ResourceConfigurationSource
java.lang.Object
com.suse.common.configuration.BaseConfigurationSource
com.suse.common.configuration.ResourceConfigurationSource
- All Implemented Interfaces:
ConfigurationSource
A configuration source that's retrieving the values from a resource file
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Loggerprivate final Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the names of all the available properties.protected StringgetRawValue(String property) Methods inherited from class com.suse.common.configuration.BaseConfigurationSource
convertTo, getBoolean, getDouble, getFloat, getInteger, getList, getLong, getString, toPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.suse.common.configuration.ConfigurationSource
requireBoolean, requireDouble, requireFloat, requireInteger, requireList, requireLong, requireString
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
properties
-
-
Constructor Details
-
ResourceConfigurationSource
Default constructor- Parameters:
resourceName- the name of the resource, usable by the system class loader to locate it.
-
-
Method Details
-
getRawValue
- Specified by:
getRawValuein classBaseConfigurationSource
-
getPropertyNames
Description copied from interface:ConfigurationSourceRetrieves the names of all the available properties.- Returns:
- the set of property names
-