Package com.apgar.common.lib.properties
Class EbxProperties
java.lang.Object
com.apgar.common.lib.properties.EbxProperties
Utility class for managing EBX properties.
This class provides methods to access the EBX home directory and retrieve properties from the EBX properties file.
- Author:
- APGAR Consulting
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileRetrieves the EBX home directory based on the system propertyebx.home.static StringgetProperty(String ebxPropertiesKey) Retrieves the value of propertyebxPropertiesKeyfrom the EBX properties file.static StringgetProperty(String ebxPropertiesKey, String defaultValue) Retrieves the value of propertyebxPropertiesKeyfrom the EBX properties file, or returnsdefaultValueif the property is not found.
-
Method Details
-
getEbxHomeDirectory
Retrieves the EBX home directory based on the system propertyebx.home.- Returns:
- the EBX home directory as a
File.
-
getProperty
Retrieves the value of propertyebxPropertiesKeyfrom the EBX properties file.- Parameters:
ebxPropertiesKey- the key of the property to retrieve (e.g., ebx.workflow.acivation)- Returns:
- the value of the specified property as a
String, or an empty string if not found.
-
getProperty
Retrieves the value of propertyebxPropertiesKeyfrom the EBX properties file, or returnsdefaultValueif the property is not found.- Parameters:
ebxPropertiesKey- the key of the property to retrievedefaultValue- the default value to return if the property is not found- Returns:
- the value of the specified property as a
String, or the default value if not found.
-