- All Known Implementing Classes:
AbstractModule,ActionModule,ClusterModule,DiscoveryModule,GatewayModule,IndicesModule,MapBinder.RealMapBinder,Multibinder.RealMultibinder,SettingsModule
public interface Module
A module contributes configuration information, typically interface
bindings, which will be used to create an
Injector. A Guice-based
application is ultimately composed of little more than a set of
Modules and some bootstrapping code.
Your Module classes can use a more streamlined syntax by extending
AbstractModule rather than implementing this interface directly.
-
Method Summary
-
Method Details
-
configure
Contributes bindings and other configurations for this module tobinder.Do not invoke this method directly to install submodules. Instead use
Binder.install(Module).
-