public abstract class ProxyUtil
extends java.lang.Object
Constructor and Description |
---|
ProxyUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
createClientProxy(java.lang.Class<T> clazz,
JsonRpcRestClient client) |
static <T> T |
createClientProxy(java.lang.ClassLoader classLoader,
java.lang.Class<T> proxyInterface,
IJsonRpcClient client)
|
static <T> T |
createClientProxy(java.lang.ClassLoader classLoader,
java.lang.Class<T> proxyInterface,
JsonRpcClient client,
java.io.InputStream input,
java.io.OutputStream output)
|
static <T> T |
createClientProxy(java.lang.ClassLoader classLoader,
java.lang.Class<T> proxyInterface,
JsonRpcClient client,
java.net.Socket socket)
|
static java.lang.Object |
createCompositeServiceProxy(java.lang.ClassLoader classLoader,
java.lang.Object[] services,
boolean allowMultipleInheritance)
Creates a composite service using all of the given
services.
|
static java.lang.Object |
createCompositeServiceProxy(java.lang.ClassLoader classLoader,
java.lang.Object[] services,
java.lang.Class<?>[] serviceInterfaces,
boolean allowMultipleInheritance)
Creates a composite service using all of the given
services and implementing the given interfaces.
|
public static java.lang.Object createCompositeServiceProxy(java.lang.ClassLoader classLoader, java.lang.Object[] services, boolean allowMultipleInheritance)
classLoader
- the ClassLoader
services
- the service objectsallowMultipleInheritance
- whether or not to allow multiple inheritancepublic static java.lang.Object createCompositeServiceProxy(java.lang.ClassLoader classLoader, java.lang.Object[] services, java.lang.Class<?>[] serviceInterfaces, boolean allowMultipleInheritance)
classLoader
- the ClassLoader
services
- the service objectsserviceInterfaces
- the service interfacesallowMultipleInheritance
- whether or not to allow multiple inheritancepublic static <T> T createClientProxy(java.lang.ClassLoader classLoader, java.lang.Class<T> proxyInterface, JsonRpcClient client, java.net.Socket socket) throws java.io.IOException
T
- the proxy typeclassLoader
- the ClassLoader
proxyInterface
- the interface to proxyclient
- the JsonRpcClient
socket
- the Socket
java.io.IOException
- if an I/O error occurs when creating the input stream, the output stream, the socket
is closed, the socket is not connected, or the socket input has been shutdown using shutdownInput()public static <T> T createClientProxy(java.lang.ClassLoader classLoader, java.lang.Class<T> proxyInterface, JsonRpcClient client, java.io.InputStream input, java.io.OutputStream output)
T
- the proxy typeclassLoader
- the ClassLoader
proxyInterface
- the interface to proxyclient
- the JsonRpcClient
input
- the InputStream
output
- the OutputStream
public static <T> T createClientProxy(java.lang.Class<T> clazz, JsonRpcRestClient client)
public static <T> T createClientProxy(java.lang.ClassLoader classLoader, java.lang.Class<T> proxyInterface, IJsonRpcClient client)
T
- the proxy typeclassLoader
- the ClassLoader
proxyInterface
- the interface to proxyclient
- the JsonRpcHttpClient