Class TreeConfigProducer<CHILD extends AnyConfigProducer>

java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<CHILD>
All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, ConfigProducer, Serializable
Direct Known Subclasses:
AbstractConfigProducerRoot, AbstractService, Admin, ApplicationConfigProducerRoot, Chain, Chains, Client, ClusterControllerCluster, Component, ConfigProducerGroup, ConfigserverCluster, ContainerCluster, ContentCluster, ContentSearchCluster, DistributorCluster, FileDistributionConfigProducer, Host, HostSystem, Http, IndexedSearchCluster.MultipleDocumentDatabasesConfigProducer, ModelConfigProvider, PersistenceEngine, SearchCluster, SimpleConfigProducer, StorageCluster

public abstract class TreeConfigProducer<CHILD extends AnyConfigProducer> extends AnyConfigProducer
Superclass for all producers with children. Config producers constructs and returns config instances on request.
Author:
gjoranv, arnej
See Also:
  • Constructor Details

    • TreeConfigProducer

      public TreeConfigProducer(TreeConfigProducer parent, String subId)
      Creates a new TreeConfigProducer with the given parent and subId. This constructor will add the resulting producer to the children of parent.
      Parameters:
      parent - the parent of this ConfigProducer
      subId - the fragment of the config id for the producer
    • TreeConfigProducer

      public TreeConfigProducer(String subId)
      Create an config producer with a configId only. Used e.g. to create root nodes, and producers that are given children after construction using addChild(AnyConfigProducer).
      Parameters:
      subId - The sub configId. Note that this can be prefixed when calling addChild with this producer as arg.
  • Method Details