Class PropertyReader
- java.lang.Object
-
- hu.icellmobilsoft.coffee.tool.properties.PropertyReader
-
public class PropertyReader extends Object
PropertyReader class.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyReader()Constructor for PropertyReader.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyReadergetInstance()Getter for the fieldinstance.StringgetSystemProperty(Class<?> c, String keyPart)Returns system property of the given key.StringgetSystemProperty(Class<?> c, String keyPart, String defaultValue)Returns system property of the given key.
-
-
-
Method Detail
-
getInstance
public static PropertyReader getInstance()
Getter for the fieldinstance.- Returns:
PropertyReader
-
getSystemProperty
public String getSystemProperty(Class<?> c, String keyPart)
Returns system property of the given key.- Parameters:
c- class part of system property keykeyPart- key part of desired system property- Returns:
- system property
-
getSystemProperty
public String getSystemProperty(Class<?> c, String keyPart, String defaultValue)
Returns system property of the given key.- Parameters:
c- class part of system property keykeyPart- key part of desired system propertydefaultValue- key part of desired system property- Returns:
- system property
-
-