Class PropertiesUtil

java.lang.Object
org.frankframework.util.PropertiesUtil

@NullMarked public class PropertiesUtil extends Object
  • Constructor Details

    • PropertiesUtil

      public PropertiesUtil()
  • Method Details

    • propertiesOf

      public static Properties propertiesOf(String... keyValuePairs)
    • getSubProperties

      public static Properties getSubProperties(Properties properties, String keyBase)
      Get a new Properties instance that contains a subset of the properties in the original instance, filtered by the keyBase prefix, and with that prefix removed.
      Parameters:
      properties - Original Properties to filter
      keyBase - Base property name on which to filter. Should end with a . and if it doesn't, a . is appended.
      Returns:
      New Properties instance with only the filtered properties, the keyBase prefix removed.