public final class ServiceEndpoints
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,JsonRpcMethod> |
getSupportedMethods(java.lang.Class<?> type)
Finds all Json RPC methods on a given class.
|
static Endpoint |
toEndpoint(java.util.Collection<java.lang.Object> serviceObjects)
Wraps a collection of objects with service annotations behind an
Endpoint interface. |
static Endpoint |
toEndpoint(java.lang.Object serviceObject)
Wraps a given object with service annotations behind an
Endpoint interface. |
static <T> T |
toServiceObject(Endpoint endpoint,
java.lang.Class<T> interface_)
Wraps a given
Endpoint in the given service interface. |
static java.lang.Object |
toServiceObject(Endpoint endpoint,
java.util.Collection<java.lang.Class<?>> interfaces,
java.lang.ClassLoader classLoader)
Wraps a given
Endpoint in the given service interfaces. |
public static <T> T toServiceObject(Endpoint endpoint, java.lang.Class<T> interface_)
Endpoint
in the given service interface.public static java.lang.Object toServiceObject(Endpoint endpoint, java.util.Collection<java.lang.Class<?>> interfaces, java.lang.ClassLoader classLoader)
Endpoint
in the given service interfaces.public static Endpoint toEndpoint(java.lang.Object serviceObject)
Endpoint
interface.public static Endpoint toEndpoint(java.util.Collection<java.lang.Object> serviceObjects)
Endpoint
interface.public static java.util.Map<java.lang.String,JsonRpcMethod> getSupportedMethods(java.lang.Class<?> type)