Ejemplo n.º 1
0
 /**
  * Gets a property value as an {@link Integer}.
  *
  * @param configParam the configuration parameter
  * @return property value
  */
 public Integer getIntegerProperty(ConfigAgrParam configParam) {
   return Integer.parseInt(properties.getProperty(configParam.name()));
 }
Ejemplo n.º 2
0
 /**
  * Gets a property value as a {@link boolean}.
  *
  * @param configParam the configuration parameter
  * @return property value
  */
 public boolean getBooleanProperty(ConfigAgrParam configParam) {
   return Boolean.parseBoolean(properties.getProperty(configParam.name()));
 }
Ejemplo n.º 3
0
 /**
  * Gets a property value as a {@link String}.
  *
  * @param configParam the configuration parameter
  * @return property value
  */
 public String getProperty(ConfigAgrParam configParam) {
   if (properties == null) {
     return null;
   }
   return properties.getProperty(configParam.name());
 }