Class ConfigInstance


public abstract class ConfigInstance extends InnerNode
Represents an instance of an application config with a specific configId.

An instance of this class contains all values (represented by Nodes) for the config object as it is the superclass of the generated config class used by the client.

  • Constructor Details

    • ConfigInstance

      public ConfigInstance()
  • Method Details

    • getDefName

      public static String getDefName(Class<?> type)
      Gets the name of the given config instance
    • getDefNamespace

      public static String getDefNamespace(Class<?> type)
      Gets the namespace of the given config instance
    • serialize

      public static List<String> serialize(InnerNode node)
      Returns the serialized representation of the given node.

      Declared static, instead of InnerNode member, to avoid a public 0-arg method with a commonly used name.

      Parameters:
      node - The inner node
      Returns:
      a list of strings, containing the serialized representation of this config
    • serialize

      public static void serialize(InnerNode node, Serializer serializer)