Class MathService
java.lang.Object
org.consensusj.jsonrpc.introspection.AbstractJsonRpcService
org.consensusj.jsonrpc.introspection.sample.MathService
- All Implemented Interfaces:
JsonRpcServiceWrapper
,JsonRpcService
Simple service and command-line tool that contains a "math" JsonRpcService
Allows testing method dispatch independent of any server code or framework
(including compiling with Graal `native-image` and running as a native tool with SubstrateVM)
-
Constructor Summary
ConstructorDescriptionConstructor that callsAbstractJsonRpcService(Map)
with a private, statically-initializedMap
of methods generated withJsonRpcServiceWrapper.reflect(Class)
}. -
Method Summary
Methods inherited from class org.consensusj.jsonrpc.introspection.AbstractJsonRpcService
exception, getMethod, getServiceObject, result
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.consensusj.jsonrpc.introspection.JsonRpcServiceWrapper
call
-
Constructor Details
-
MathService
public MathService()Constructor that callsAbstractJsonRpcService(Map)
with a private, statically-initializedMap
of methods generated withJsonRpcServiceWrapper.reflect(Class)
}.
-
-
Method Details
-
main
-
add
-
subtract
-