Package dev.getelements.elements.jrpc
Class JsonRpcModule
java.lang.Object
com.google.inject.PrivateModule
dev.getelements.elements.jrpc.JsonRpcModule
- All Implemented Interfaces:
com.google.inject.Module
public class JsonRpcModule
extends com.google.inject.PrivateModule
Configures a JSON RPC module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
scanningScope
(String scope) Scans for the scope, specifying both the models and services matching the scope.withHttpRedirectProvider
(String redirectUrls) Specifies the redirect provider.withNetwork
(BlockchainNetwork network) Configures with theBlockchainNetwork
instance.Disables redirection entirely.Methods inherited from class com.google.inject.PrivateModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, expose, expose, expose, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
JsonRpcModule
public JsonRpcModule() -
JsonRpcModule
-
-
Method Details
-
configure
protected void configure()- Specified by:
configure
in classcom.google.inject.PrivateModule
-
withNetwork
Configures with theBlockchainNetwork
instance.- Parameters:
network
- the name of the network- Returns:
- this instance
-
scanningScope
Scans for the scope, specifying both the models and services matching the scope.- Parameters:
scope
- the scope- Returns:
- this instance
-
withNoRedirect
Disables redirection entirely.- Returns:
- this instance
-
withHttpRedirectProvider
Specifies the redirect provider.- Returns:
- this instance
-