public class ObjectApiBuilder extends AbstractBuilder implements InvocationHandler
ERROR, ID, JSONRPC, mapper, METHOD, PARAMS, RESULT, transport, VERSION_2_0| Constructor and Description |
|---|
ObjectApiBuilder(Class<?> clazz,
Transport transport,
com.fasterxml.jackson.databind.ObjectMapper mapper,
ParamsType userParamsType,
IdGenerator<?> userIdGenerator)
Crate a new proxy for an interface
|
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
arrayParams, objectParams, requestpublic ObjectApiBuilder(Class<?> clazz, Transport transport, com.fasterxml.jackson.databind.ObjectMapper mapper, ParamsType userParamsType, IdGenerator<?> userIdGenerator)
clazz - service interfacetransport - transport abstractionmapper - json mapperuserParamsType - custom type of request paramsuserIdGenerator - custom id generatorCopyright © 2018. All rights reserved.