Class PropertiesResolver

java.lang.Object
net.tirasa.connid.commons.db.PropertiesResolver

public class PropertiesResolver extends Object
Resolver of properties in UNIX/ant style. Example of usage : Properties p = new Properties(); p.setProperty("p1","value1"); p.setProperty("p2","Value of p1 is ${p1}"); p = PropertiesResolver.resolveProperties(p); It is shield against recursion.
Author:
kitko
  • Method Details

    • resolveProperties

      public static Properties resolveProperties(Properties properties, Properties resolvedProperties)
      Resolves properties
      Parameters:
      properties - properties we want to resolve
      resolvedProperties - already known properties
      Returns:
      resolved properties
    • resolveProperties

      public static Properties resolveProperties(Properties properties)
      Resolve properties containing already known values
      Parameters:
      properties - properties
      Returns:
      resolved properties