Package com.acumenvelocity.ath.common
Class ProjectProps
- java.lang.Object
-
- com.acumenvelocity.ath.common.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 Summary
Constructors Constructor Description ProjectProps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetProjectPropIntValue(String propName)Retrieves an integer property value by name.static StringgetProjectPropValue(String propName)Retrieves a string property value by name.
-
-
-
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
-
-