|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.codegen.util.ProxyUtil
public abstract class ProxyUtil
Utilities to avoid redundant code for proxy generation.
Nested Class Summary | |
---|---|
static class |
ProxyUtil.InterceptorProvider
A utility class that provides a list of interceptors for a given remote interface and method. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 use
CallContext
public static boolean shouldProxyMethod(MetaMethod method)
public static String createCallSignature(MetaMethod m)
public static String createCallSignature(Class<?> referenceClass, Method m)
public static boolean isMethodInInterface(Class<?> iface, Method member)
public static Statement generateProxyMethodReturnStatement(MetaMethod method)
method
-
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |