Class ConfigProducerGroup<CHILD extends AbstractConfigProducer<?>>

    • Constructor Detail

    • Method Detail

      • addComponent

        public void addComponent​(com.yahoo.component.ComponentId id,
                                 CHILD producer)
      • removeComponent

        public CHILD removeComponent​(com.yahoo.component.ComponentId componentId)
        Removes a component by id
        Returns:
        the removed component, or null if it was not present
      • getComponents

        public java.util.Collection<CHILD> getComponents()
      • getComponents

        public <T extends CHILD> java.util.Collection<T> getComponents​(java.lang.Class<T> componentClass)
      • getComponentMap

        public java.util.Map<com.yahoo.component.ComponentId,​CHILD> getComponentMap()
        Returns a map of all components in this group, with (local) component ID as key.