Class ConfigTrackingValueTransformer
- java.lang.Object
-
- io.quarkus.deployment.configuration.tracker.ConfigTrackingValueTransformer
-
public class ConfigTrackingValueTransformer extends Object
Transforms configuration values before they are written to a file
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
asString(org.eclipse.microprofile.config.ConfigValue value)
Returns a non-null string value for a givenConfigValue
instance.static ConfigTrackingValueTransformer
newInstance(ConfigTrackingConfig config)
static ConfigTrackingValueTransformer
newInstance(org.eclipse.microprofile.config.Config config)
static String
sha512(byte[] value)
static String
sha512(String value)
String
transform(String name, String original)
Returns a string value that can be persisted to file.String
transform(String name, org.eclipse.microprofile.config.ConfigValue value)
Returns a string value that can be persisted to file.
-
-
-
Method Detail
-
newInstance
public static ConfigTrackingValueTransformer newInstance(org.eclipse.microprofile.config.Config config)
-
newInstance
public static ConfigTrackingValueTransformer newInstance(ConfigTrackingConfig config)
-
asString
public static String asString(org.eclipse.microprofile.config.ConfigValue value)
Returns a non-null string value for a givenConfigValue
instance.- Parameters:
value
- configuration value- Returns:
- non-null string value for a given
ConfigValue
instance
-
transform
public String transform(String name, org.eclipse.microprofile.config.ConfigValue value)
Returns a string value that can be persisted to file.- Parameters:
name
- option namevalue
- configuration value- Returns:
- string value that can be persisted to file
-
transform
public String transform(String name, String original)
Returns a string value that can be persisted to file.- Parameters:
name
- option nameoriginal
- configuration value- Returns:
- string value that can be persisted to file
-
sha512
public static String sha512(byte[] value)
-
-