Package io.airlift.configuration
Class SwitchModule<T>
java.lang.Object
io.airlift.configuration.AbstractConfigurationAwareModule
io.airlift.configuration.SwitchModule<T>
- All Implemented Interfaces:
com.google.inject.Module,ConfigurationAwareModule
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetup(com.google.inject.Binder binder) static <C,V> com.google.inject.Module switchModule(Class<C> config, Function<C, V> valueProvider, Function<V, com.google.inject.Module> moduleProvider) Methods inherited from class io.airlift.configuration.AbstractConfigurationAwareModule
buildConfigObject, buildConfigObject, configure, consumeProperty, getProperties, getProperty, install, setConfigurationFactory
-
Method Details
-
switchModule
-
setup
protected void setup(com.google.inject.Binder binder) - Specified by:
setupin classAbstractConfigurationAwareModule
-