Class Environment

java.lang.Object
org.frankframework.util.Environment

public class Environment extends Object
  • Constructor Details

    • Environment

      public Environment()
  • Method Details

    • getEnvironmentVariables

      public static Properties getEnvironmentVariables() throws IOException
      Throws:
      IOException
    • getSystemProperty

      public static Optional<String> getSystemProperty(String property, String def)
      Look up the property in the environment with System.getenv(String) and next in the System properties with System.getProperty(String, String). The SecurityException if thrown, is hidden.
      Parameters:
      property - The property to search for.
      def - The default value to return, may be null.
      Returns:
      the string value of the system property, or the default value if there is no property with that property. May return null if the default value was null.
      Since:
      1.1
    • getModuleVersion

      @Nullable public static String getModuleVersion(@Nonnull String module)
      Get FF module version based on the pom.properties file.
      Parameters:
      module - name of the module to fetch the version
      Returns:
      module version or null if not found
    • getManifest

      @Nonnull public static Manifest getManifest(@Nonnull URL jarFileLocation) throws IOException
      Throws:
      IOException