public class ConfigInstanceUtil extends Object
Constructor and Description |
---|
ConfigInstanceUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
getField(com.yahoo.config.ConfigBuilder builder,
String fieldName)
Gets the value of a private field on a Builder.
|
static <T extends com.yahoo.config.ConfigInstance> |
getNewInstance(Class<T> type,
String configId,
com.yahoo.vespa.config.ConfigPayload payload) |
private static void |
setConfigId(com.yahoo.config.ConfigInstance instance,
String configId) |
static <BUILDER extends com.yahoo.config.ConfigBuilder> |
setValues(BUILDER destination,
BUILDER source)
Copies all values that have been explicitly set on the source to the destination.
|
public static <BUILDER extends com.yahoo.config.ConfigBuilder> void setValues(BUILDER destination, BUILDER source)
BUILDER
- The builder class.destination
- The builder to copy values into.source
- The builder to copy values from. Unset values are not copied.public static <T extends com.yahoo.config.ConfigInstance> T getNewInstance(Class<T> type, String configId, com.yahoo.vespa.config.ConfigPayload payload)
private static void setConfigId(com.yahoo.config.ConfigInstance instance, String configId) throws NoSuchFieldException, IllegalAccessException
Copyright © 2018. All rights reserved.