Package io.datarouter.storage.config
Class BaseStoragePlugin
java.lang.Object
com.google.inject.AbstractModule
io.datarouter.inject.guice.BaseGuiceModule
io.datarouter.inject.guice.BasePlugin
io.datarouter.storage.config.BaseStoragePlugin
- All Implemented Interfaces:
com.google.inject.Module,io.datarouter.inject.guice.GuiceOptionalBinder
- Direct Known Subclasses:
DatarouterStoragePlugin
public abstract class BaseStoragePlugin
extends io.datarouter.inject.guice.BasePlugin
Plugins are verbose wrappers around GuiceModules for easy installation of datarouter modules. They use a builder
pattern to specify required and optional implementations of classes used by the module. Some modules have their own
extensions of BasePlugin which allows more features to get configured easily.
BasePlugin auto configures and binds cluster settings and dao registration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Map<PluginConfigKey<?>,List<Class<? extends PluginConfigValue<?>>>> final Map<PluginConfigKey<?>,Class<? extends PluginConfigValue<?>>> final Map<PluginConfigKey<?>,List<PluginConfigValue<?>>> final Map<PluginConfigKey<?>,PluginConfigValue<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPluginConfig(Map<PluginConfigKey<?>, List<Class<? extends PluginConfigValue<?>>>> map) protected voidaddPluginEntries(PluginConfigKey<?> key, Collection<Class<? extends PluginConfigValue<?>>> values) protected voidaddPluginEntries(Collection<PluginConfigValue<?>> values) protected voidaddPluginEntry(PluginConfigKey<?> key, Class<? extends PluginConfigValue<?>> value) protected voidaddPluginEntry(PluginConfigValue<?> value) protected voidaddSettingRoot(Class<? extends SettingRoot> settingRoot) protected voidaddStoragePlugin(BaseStoragePlugin storagePlugin) protected voidaddTestModule(com.google.inject.Module testModule) List<com.google.inject.Module>protected voidprotected voidsetDaosModule(DaosModuleBuilder daosModule) Methods inherited from class io.datarouter.inject.guice.BasePlugin
getAsDefaultBinderModule, getNameMethods inherited from class io.datarouter.inject.guice.BaseGuiceModule
bindUnsupported, getGuiceBinderMethods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.inject.guice.GuiceOptionalBinder
bindActual, bindActualInstance, bindActualInstance, bindActualInstance, bindDefault, bindDefaultInstance, bindDefaultInstance, bindDefaultInstance, optionalBinder, optionalBinder, optionalBinder
-
Field Details
-
classSingle
-
classList
-
instanceSingle
-
instanceList
-
-
Constructor Details
-
BaseStoragePlugin
public BaseStoragePlugin()
-
-
Method Details
-
addSettingRoot
-
setDaosModule
-
getDaosModuleBuilder
-
setDaos
-
addStoragePlugin
-
getStoragePlugins
-
addTestModule
protected void addTestModule(com.google.inject.Module testModule) -
getTestModules
-
addPluginConfig
public void addPluginConfig(Map<PluginConfigKey<?>, List<Class<? extends PluginConfigValue<?>>>> map) -
addPluginEntries
protected void addPluginEntries(PluginConfigKey<?> key, Collection<Class<? extends PluginConfigValue<?>>> values) -
addPluginEntries
-
addPluginEntry
-
addPluginEntry
-