public class ModuleRPCFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ModuleRPCFactory.DynamicRPCHandler |
Constructor and Description |
---|
ModuleRPCFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
create(java.lang.String moduleId,
java.lang.Class<T> primaryInterface,
java.lang.Class<?>... otherInterfaces)
Generates a proxy that implements the specified interface and maps calls through module rpc to the specified
module in the gateway.
|
public static <T> T create(java.lang.String moduleId, java.lang.Class<T> primaryInterface, java.lang.Class<?>... otherInterfaces)
moduleId
- the id of the module who implements the same interface in the class returned by
GatewayModuleHook.getRPCHandler().primaryInterface
- the interface that will be created.otherInterfaces
- if the gateway rpc handler implements multiple interfaces, they will only be available
through the proxy if they are specified here. If no other interfaces are used, this
parameter can be left out.