Package net.tirasa.connid.commons.db
Class PropertiesResolver
java.lang.Object
net.tirasa.connid.commons.db.PropertiesResolver
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 Summary
Modifier and TypeMethodDescriptionstatic Properties
resolveProperties
(Properties properties) Resolve properties containing already known valuesstatic Properties
resolveProperties
(Properties properties, Properties resolvedProperties) Resolves properties
-
Method Details
-
resolveProperties
Resolves properties- Parameters:
properties
- properties we want to resolveresolvedProperties
- already known properties- Returns:
- resolved properties
-
resolveProperties
Resolve properties containing already known values- Parameters:
properties
- properties- Returns:
- resolved properties
-