Package com.yahoo.container.core.config
Class HandlersConfigurerDi
java.lang.Object
com.yahoo.container.core.config.HandlersConfigurerDi
For internal use only.
- Author:
- Tony Vaagenes, gjoranv
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionHandlersConfigurerDi
(SubscriberFactory subscriberFactory, Container vespaContainer, String configId, ComponentDeconstructor deconstructor, com.google.inject.Injector discInjector, com.yahoo.jdisc.application.OsgiFramework osgiFramework) HandlersConfigurerDi
(SubscriberFactory subscriberFactory, Container vespaContainer, String configId, ComponentDeconstructor deconstructor, com.google.inject.Injector discInjector, OsgiWrapper osgiWrapper) -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the currently active application configuration generation<T> T
getComponent
(Class<T> componentClass) void
reloadConfig
(long generation) void
shutdown()
void
waitForNextGraphGeneration
(com.google.inject.Injector discInjector, boolean isInitializing) Wait for new config to arrive and produce the new graph
-
Constructor Details
-
HandlersConfigurerDi
public HandlersConfigurerDi(SubscriberFactory subscriberFactory, Container vespaContainer, String configId, ComponentDeconstructor deconstructor, com.google.inject.Injector discInjector, com.yahoo.jdisc.application.OsgiFramework osgiFramework) -
HandlersConfigurerDi
public HandlersConfigurerDi(SubscriberFactory subscriberFactory, Container vespaContainer, String configId, ComponentDeconstructor deconstructor, com.google.inject.Injector discInjector, OsgiWrapper osgiWrapper)
-
-
Method Details
-
waitForNextGraphGeneration
public Runnable waitForNextGraphGeneration(com.google.inject.Injector discInjector, boolean isInitializing) Wait for new config to arrive and produce the new graph- Returns:
- Task for deconstructing previous component graph and bundles
-
reloadConfig
public void reloadConfig(long generation) -
getComponent
-
shutdown
public void shutdown() -
shutdownConfigRetriever
public void shutdownConfigRetriever() -
generation
public long generation()Returns the currently active application configuration generation
-