Class ConfigInstanceUtil

java.lang.Object
com.yahoo.config.subscription.ConfigInstanceUtil

public class ConfigInstanceUtil extends Object
Author:
gjoranv
  • Constructor Details

    • ConfigInstanceUtil

      public ConfigInstanceUtil()
  • Method Details

    • setValues

      public static <BUILDER extends com.yahoo.config.ConfigBuilder> void setValues(BUILDER destination, BUILDER source)
      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 into
      source - 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)
    • getField

      public static Object getField(com.yahoo.config.ConfigBuilder builder, String fieldName)
      Gets the value of a private field on a Builder.
      Parameters:
      builder - a ConfigBuilder
      fieldName - a config field name
      Returns:
      the value of the private field