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​(java.nio.file.Path serviceArtifactsDir, int serviceWebServerPort, java.util.Map<java.lang.String,​java.lang.Class<?>> dependencyReferenceClasses)
    Creates a framework module with the given configuration.
  • Method Summary

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FrameworkModule

      public FrameworkModule​(java.nio.file.Path serviceArtifactsDir, int serviceWebServerPort, java.util.Map<java.lang.String,​java.lang.Class<?>> dependencyReferenceClasses)
      Creates a framework module with the given configuration.
      Parameters:
      serviceArtifactsDir - the directory in which administrators place and from which the service runtime loads service artifacts
      serviceWebServerPort - the port for the web server on which endpoints of Exonum services will be mounted
      dependencyReferenceClasses - the reference classes from framework-provided dependencies
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule