Class ConfigUtils
- java.lang.Object
-
- cz.o2.proxima.core.repository.config.ConfigUtils
-
public class ConfigUtils extends java.lang.Object
Various utilities related toConfig
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static cz.o2.proxima.typesafe.config.Config
withStorageReplacement(cz.o2.proxima.typesafe.config.Config config, UnaryPredicate<java.lang.String> familyFilter, UnaryFunction<java.lang.String,java.net.URI> storageReplacement)
Create newConfig
from given one with storages of selected attribute families replaced by given URI.
-
-
-
Method Detail
-
withStorageReplacement
public static cz.o2.proxima.typesafe.config.Config withStorageReplacement(cz.o2.proxima.typesafe.config.Config config, UnaryPredicate<java.lang.String> familyFilter, UnaryFunction<java.lang.String,java.net.URI> storageReplacement)
Create newConfig
from given one with storages of selected attribute families replaced by given URI.- Parameters:
config
- inputConfig
to modifyfamilyFilter
- filter of family names to modifystorageReplacement
- function for replacement of URIs- Returns:
- Config
-
-