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 com.yahoo.container.bundle.BundleInstantiationSpecification bundleInstatiationSpecification​(ComponentsConfig.Components config)  
      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 installBundles​(java.util.Map<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>,​com.yahoo.config.ConfigInstance> configsIncludingBootstrapConfigs)  
      void reloadConfig​(long generation)  
      void shutdown​(com.yahoo.container.di.componentgraph.core.ComponentGraph graph, ComponentDeconstructor deconstructor)  
      void shutdownConfigurer()  
      • 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)
      • installBundles

        public void installBundles​(java.util.Map<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>,​com.yahoo.config.ConfigInstance> configsIncludingBootstrapConfigs)
      • shutdown

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

        public void shutdownConfigurer()
      • 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)
      • bundleInstatiationSpecification

        public static com.yahoo.container.bundle.BundleInstantiationSpecification bundleInstatiationSpecification​(ComponentsConfig.Components config)