public abstract class ProxyUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProxyUtil.InterceptorProvider
A utility class that provides a list of interceptors for a given remote interface and method.
|
Modifier and Type | Method and Description |
---|---|
static String |
createCallSignature(Class<?> referenceClass,
Method m) |
static String |
createCallSignature(MetaMethod m) |
static AnonymousClassStructureBuilder |
generateProxyMethodCallContext(com.google.gwt.core.ext.GeneratorContext context,
Class<? extends RemoteCallContext> callContextType,
MetaClass proxyClass,
MetaMethod method,
Statement proceed,
List<Class<?>> interceptors)
Generates the
CallContext for method
interception. |
static Statement |
generateProxyMethodReturnStatement(MetaMethod method)
Generates a valid return statement for the provided method.
|
static boolean |
isMethodInInterface(Class<?> iface,
Method member) |
static boolean |
shouldProxyMethod(MetaMethod method) |
public static AnonymousClassStructureBuilder generateProxyMethodCallContext(com.google.gwt.core.ext.GeneratorContext context, Class<? extends RemoteCallContext> callContextType, MetaClass proxyClass, MetaMethod method, Statement proceed, List<Class<?>> interceptors)
CallContext
for method
interception. Ignores annotations in non-translatable packages.callContextType
- the type of RemoteCallContext
to
use.proxyClass
- the declaring proxy classmethod
- the method that is being proxied.proceed
- the logic that should be invoked if
CallContext.proceed()
is called.interceptors
- a list of interceptors to useCallContext
public static boolean shouldProxyMethod(MetaMethod method)
public static String createCallSignature(MetaMethod m)
public static Statement generateProxyMethodReturnStatement(MetaMethod method)
method
- Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.