Package com.exonum.binding.core.runtime
Class FrameworkModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- com.exonum.binding.core.runtime.FrameworkModule
-
- All Implemented Interfaces:
com.google.inject.Module
public final class FrameworkModule extends com.google.inject.AbstractModule
A framework module which configures the system-wide bindings.
-
-
Constructor Summary
Constructors Constructor Description FrameworkModule(int serviceWebServerPort, Map<String,Class<?>> dependencyReferenceClasses)
Creates a framework module with the given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Constructor Detail
-
FrameworkModule
public FrameworkModule(int serviceWebServerPort, Map<String,Class<?>> dependencyReferenceClasses)
Creates a framework module with the given configuration.- Parameters:
serviceWebServerPort
- the port for the web server on which endpoints of Exonum services will be mounteddependencyReferenceClasses
- the reference classes from framework-provided dependencies
-
-