Package com.yahoo.config.subscription
Class ConfigInstanceUtil
- java.lang.Object
-
- com.yahoo.config.subscription.ConfigInstanceUtil
-
@Deprecated(forRemoval=true, since="7") public class ConfigInstanceUtil extends Object
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed in Vespa 8. Only for internal use.- Author:
- gjoranv
-
-
Constructor Summary
Constructors Constructor Description ConfigInstanceUtil()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Object
getField(com.yahoo.config.ConfigBuilder builder, String fieldName)
Deprecated, for removal: This API element is subject to removal in a future version.Gets the value of a private field on a Builder.static <T extends com.yahoo.config.ConfigInstance>
TgetNewInstance(Class<T> type, String configId, ConfigPayload payload)
Deprecated, for removal: This API element is subject to removal in a future version.static <BUILDER extends com.yahoo.config.ConfigBuilder>
voidsetValues(BUILDER destination, BUILDER source)
Deprecated, for removal: This API element is subject to removal in a future version.Copies all values that have been explicitly set on the source to the destination.
-
-
-
Method Detail
-
setValues
public static <BUILDER extends com.yahoo.config.ConfigBuilder> void setValues(BUILDER destination, BUILDER source)
Deprecated, for removal: This API element is subject to removal in a future version.Copies all values that have been explicitly set on the source to the destination. Values that have not been explicitly set in the source builder, will be left unchanged in the destination.- Type Parameters:
BUILDER
- the builder class- Parameters:
destination
- the builder to copy values intosource
- the builder to copy values from. Unset values are not copied
-
getNewInstance
public static <T extends com.yahoo.config.ConfigInstance> T getNewInstance(Class<T> type, String configId, ConfigPayload payload)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getField
public static Object getField(com.yahoo.config.ConfigBuilder builder, String fieldName)
Deprecated, for removal: This API element is subject to removal in a future version.Gets the value of a private field on a Builder.- Parameters:
builder
- aConfigBuilder
fieldName
- a config field name- Returns:
- the value of the private field
-
-