Package de.xima.fc.handler.system
Class MsPropertiesHandler
java.lang.Object
de.xima.fc.handler.AMSApiHandler
de.xima.fc.handler.system.MsPropertiesHandler
- All Implemented Interfaces:
IAPIHandler,IMsPropertiesHandler,Serializable
Default implementation of the
IMsPropertiesHandler interface.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the property with the given key in the properties file with the given file name.getByKeyPrefix(String fileName, String keyPrefix) Gets all the properties that have keys that start with the given prefix from the properties file with the given file name.Gets all the properties that have keys that are contained within the given key set from the properties file with the given file name.Methods inherited from class de.xima.fc.handler.AMSApiHandler
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Constructor Details
-
MsPropertiesHandler
public MsPropertiesHandler()
-
-
Method Details
-
getByKey
Description copied from interface:IMsPropertiesHandlerGets the value of the property with the given key in the properties file with the given file name. May benull.- Specified by:
getByKeyin interfaceIMsPropertiesHandler- Parameters:
fileName- of the properties file.key- of the property within the properties file.- Returns:
- The property value if it has been set, or
nullotherwise.
-
getByKeys
Description copied from interface:IMsPropertiesHandlerGets all the properties that have keys that are contained within the given key set from the properties file with the given file name.- Specified by:
getByKeysin interfaceIMsPropertiesHandler- Parameters:
fileName- of the properties file.keys- Set of all the property keys.- Returns:
- A map with all properties values. Each property value may be empty if it has not been set.
-
getByKeyPrefix
Description copied from interface:IMsPropertiesHandlerGets all the properties that have keys that start with the given prefix from the properties file with the given file name.- Specified by:
getByKeyPrefixin interfaceIMsPropertiesHandler- Parameters:
fileName- of the properties file.keyPrefix- prefix of the property keys.- Returns:
- A map with all matching properties values.
-