Class ProjectProps


  • public class ProjectProps
    extends Object
    Utility class for loading and accessing project properties from the classpath. Properties are loaded once from '/project.properties' file during class initialization.

    This class provides type-safe access to property values with support for both string and integer property types.

    Since:
    1.0
    Version:
    1.0
    Author:
    Acumen Velocity
    See Also:
    Properties
    • Constructor Detail

      • ProjectProps

        public ProjectProps()
    • Method Detail

      • getProjectPropValue

        public static String getProjectPropValue​(String propName)
        Retrieves a string property value by name.
        Parameters:
        propName - the name of the property to retrieve
        Returns:
        the property value as String, or null if property not found
      • getProjectPropIntValue

        public static int getProjectPropIntValue​(String propName)
        Retrieves an integer property value by name.
        Parameters:
        propName - the name of the property to retrieve
        Returns:
        the property value as int
        Throws:
        NumberFormatException - if the property value cannot be parsed as integer