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.
-
Constructor Summary
Constructors Constructor Description BaseStoragePlugin() -
Method Summary
Modifier and Type Method Description protected voidaddSettingRoot(Class<? extends SettingRoot> settingRoot)DaosModuleBuildergetDaosModuleBuilder()List<Class<? extends SettingRoot>>getSettingRoots()protected voidsetDaosModule(DaosModuleBuilder daosModule)protected voidsetDaosModule(List<io.datarouter.util.tuple.Pair<Class<? extends Dao>,ClientId>> daosAndClients)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, requireBinding
-
Constructor Details
-
BaseStoragePlugin
public BaseStoragePlugin()
-
-
Method Details