Class Container


  • public class Container
    extends java.lang.Object
    Author:
    gjoranv, Tony Vaagenes, ollivir
    • Constructor Summary

      Constructors 
      Constructor Description
      Container​(com.yahoo.container.di.config.SubscriberFactory subscriberFactory, java.lang.String configId, ComponentDeconstructor componentDeconstructor)  
      Container​(com.yahoo.container.di.config.SubscriberFactory subscriberFactory, java.lang.String configId, ComponentDeconstructor componentDeconstructor, Osgi osgi)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends com.yahoo.config.ConfigInstance>
      T
      getConfig​(com.yahoo.vespa.config.ConfigKey<T> key, java.util.Map<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>,​com.yahoo.config.ConfigInstance> configs)  
      com.yahoo.container.di.componentgraph.core.ComponentGraph getNewComponentGraph​(com.yahoo.container.di.componentgraph.core.ComponentGraph oldGraph, com.google.inject.Injector fallbackInjector, boolean restartOnRedeploy)  
      void reloadConfig​(long generation)  
      void shutdown​(com.yahoo.container.di.componentgraph.core.ComponentGraph graph, ComponentDeconstructor deconstructor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Container

        public Container​(com.yahoo.container.di.config.SubscriberFactory subscriberFactory,
                         java.lang.String configId,
                         ComponentDeconstructor componentDeconstructor,
                         Osgi osgi)
      • Container

        public Container​(com.yahoo.container.di.config.SubscriberFactory subscriberFactory,
                         java.lang.String configId,
                         ComponentDeconstructor componentDeconstructor)
    • Method Detail

      • getNewComponentGraph

        public com.yahoo.container.di.componentgraph.core.ComponentGraph getNewComponentGraph​(com.yahoo.container.di.componentgraph.core.ComponentGraph oldGraph,
                                                                                              com.google.inject.Injector fallbackInjector,
                                                                                              boolean restartOnRedeploy)
      • shutdown

        public void shutdown​(com.yahoo.container.di.componentgraph.core.ComponentGraph graph,
                             ComponentDeconstructor deconstructor)
      • reloadConfig

        public void reloadConfig​(long generation)
      • getConfig

        public static <T extends com.yahoo.config.ConfigInstance> T getConfig​(com.yahoo.vespa.config.ConfigKey<T> key,
                                                                              java.util.Map<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>,​com.yahoo.config.ConfigInstance> configs)