public class ActorProxyFactory extends Object
| Constructor and Description |
|---|
ActorProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> Class<T> |
createProxyClass(Class<T> clazz,
ClassLoader loader) |
protected void |
defineProxyFields(javassist.ClassPool pool,
javassist.CtClass cc) |
protected void |
defineProxyMethods(javassist.CtClass cc,
javassist.CtClass orig) |
static <A extends Annotation> |
getInheritedAnnotation(Class<A> annotationClass,
AnnotatedElement element) |
protected javassist.CtMethod[] |
getSortedNonPublicCtMethods(javassist.CtClass orig) |
static javassist.CtMethod[] |
getSortedPublicCtMethods(javassist.CtClass orig,
boolean onlyRemote) |
<T> T |
instantiateProxy(Actor target) |
<T> T |
instantiateProxy(Class<? extends Actor> targetClass,
Actor target) |
protected <T> Class |
loadProxyClass(Class clazz,
javassist.ClassPool pool,
javassist.CtClass cc) |
static String |
toString(javassist.CtMethod m) |
String |
toString(Method m) |
public <T> T instantiateProxy(Actor target)
protected <T> Class<T> createProxyClass(Class<T> clazz, ClassLoader loader) throws Exception
Exceptionprotected <T> Class loadProxyClass(Class clazz, javassist.ClassPool pool, javassist.CtClass cc) throws ClassNotFoundException
ClassNotFoundExceptionprotected void defineProxyFields(javassist.ClassPool pool,
javassist.CtClass cc)
throws javassist.CannotCompileException,
javassist.NotFoundException
javassist.CannotCompileExceptionjavassist.NotFoundExceptionprotected void defineProxyMethods(javassist.CtClass cc,
javassist.CtClass orig)
throws Exception
Exceptionpublic static String toString(javassist.CtMethod m)
protected javassist.CtMethod[] getSortedNonPublicCtMethods(javassist.CtClass orig)
throws javassist.NotFoundException
javassist.NotFoundExceptionpublic static javassist.CtMethod[] getSortedPublicCtMethods(javassist.CtClass orig,
boolean onlyRemote)
throws javassist.NotFoundException
javassist.NotFoundExceptionpublic static <A extends Annotation> A getInheritedAnnotation(Class<A> annotationClass, AnnotatedElement element)
Copyright © 2019. All rights reserved.