Class PropertyConfiguration

java.lang.Object
org.javers.common.properties.PropertyConfiguration

public class PropertyConfiguration extends Object
  • Constructor Details

    • PropertyConfiguration

      public PropertyConfiguration(String classpathName)
      loads a properties file from classpath
      Parameters:
      classpathName - classpath resource name, ex. "resources/config.properties"
  • Method Details

    • getEnumProperty

      public <T extends Enum<T>> T getEnumProperty(String propertyKey, Class<T> enumType)
      assembles mandatory enum property from properties bag
      Throws:
      JaversException - UNDEFINED_PROPERTY
      JaversException - MALFORMED_PROPERTY
    • contains

      public boolean contains(String propertyKey)
    • getStringProperty

      public String getStringProperty(String propertyKey)
      gets mandatory String property from properties bag
      Throws:
      JaversException - UNDEFINED_PROPERTY
    • getBooleanProperty

      public boolean getBooleanProperty(String propertyKey)
      Throws:
      JaversException - UNDEFINED_PROPERTY