Class AbstractJsonRpcService

java.lang.Object
org.consensusj.jsonrpc.introspection.AbstractJsonRpcService
All Implemented Interfaces:
JsonRpcServiceWrapper, JsonRpcService
Direct Known Subclasses:
DelegatingJsonRpcService, EchoJsonRpcService, MathService

public abstract class AbstractJsonRpcService extends Object implements JsonRpcServiceWrapper
GraalVM-compatible implementation of JsonRpcServiceWrapper that takes a map of Methods in the constructor so that introspection can be done at static initialization time (which means during native image generation). Since getServiceObject() returns this you typically directly subclass AbstractJsonRpcService. For example see MathService.