Class EbxProperties

java.lang.Object
com.apgar.common.lib.properties.EbxProperties

public class EbxProperties extends Object
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 Details

    • getEbxHomeDirectory

      public static File getEbxHomeDirectory()
      Retrieves the EBX home directory based on the system property ebx.home.
      Returns:
      the EBX home directory as a File.
    • getProperty

      public static String getProperty(String ebxPropertiesKey)
      Retrieves the value of property ebxPropertiesKey from 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

      public static String getProperty(String ebxPropertiesKey, String defaultValue)
      Retrieves the value of property ebxPropertiesKey from the EBX properties file, or returns defaultValue if the property is not found.
      Parameters:
      ebxPropertiesKey - the key of the property to retrieve
      defaultValue - 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.