public class Introspector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Introspector.Client
RPC calls wrapper.
|
| Modifier and Type | Field and Description |
|---|---|
static Introspector |
DEFAULT_INTROSPECTOR
Default introspector instance.
|
| Constructor and Description |
|---|
Introspector() |
| Modifier and Type | Method and Description |
|---|---|
<Type> Class<? extends Type> |
createClient(Class<Type> type,
Connector connector)
Builds client wrapper that handles all of the JSON-RPC calls.
|
<Type> void |
registerParameterMapper(Class<Type> type,
ParameterMapper<? super Type> mapper)
Registers parameter mapper for given class.
|
<Type> void |
registerResultHandler(Class<Type> type,
Function<Object,? extends Type> handler)
Registers response type handler for given class.
|
public static final Introspector DEFAULT_INTROSPECTOR
public <Type> void registerParameterMapper(Class<Type> type, ParameterMapper<? super Type> mapper)
Type - Parameter type.type - Parameter type.mapper - Parameter mapper.public <Type> void registerResultHandler(Class<Type> type, Function<Object,? extends Type> handler)
Type - Response object type.type - Response type.handler - Response handler.public <Type> Class<? extends Type> createClient(Class<Type> type, Connector connector)
Type - Client type.type - Base client type.connector - TPC connector to use for the calls.Copyright © 2015 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.