T
- The annotated resource interface.public class ClientInvocationHandler<T> extends Object implements InvocationHandler
ClientResource.wrap(Class)
and related methods.Constructor and Description |
---|
ClientInvocationHandler(ClientResource clientResource,
Class<? extends T> resourceInterface)
Constructor.
|
ClientInvocationHandler(ClientResource clientResource,
Class<? extends T> resourceInterface,
AnnotationUtils annotationUtils)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<AnnotationInfo> |
getAnnotations()
Returns the annotations of the resource interface.
|
AnnotationUtils |
getAnnotationUtils()
Returns the associated annotation utils.
|
ClientResource |
getClientResource()
Returns the associated client resource.
|
protected Request |
getRequest(Method javaMethod,
Object[] args)
Allows for child classes to modify the request.
|
Object |
invoke(Object proxy,
Method javaMethod,
Object[] args)
Effectively invokes a Java method on the given proxy object.
|
public ClientInvocationHandler(ClientResource clientResource, Class<? extends T> resourceInterface)
clientResource
- The associated client resource.resourceInterface
- The annotated resource interface.public ClientInvocationHandler(ClientResource clientResource, Class<? extends T> resourceInterface, AnnotationUtils annotationUtils)
clientResource
- The associated client resource.resourceInterface
- The annotated resource interface.annotationUtils
- The annotationUtils class.public List<AnnotationInfo> getAnnotations()
public AnnotationUtils getAnnotationUtils()
public ClientResource getClientResource()
protected Request getRequest(Method javaMethod, Object[] args) throws Throwable
Throwable
Copyright © 2005–2019. All rights reserved.