Class ActorProxyFactory

java.lang.Object
org.nustaq.kontraktor.impl.ActorProxyFactory

public class ActorProxyFactory extends Object
generate an actor proxy. This class is in awful state as it has been moved from fast-cast + extended iterative. Out of fear of breaking stuff, a major refactoring is postponed.
  • Constructor Details

    • ActorProxyFactory

      public ActorProxyFactory()
  • Method Details

    • instantiateProxy

      public <T> T instantiateProxy(Actor target)
    • instantiateProxy

      public <T> T instantiateProxy(Class<? extends Actor> targetClass, Actor target)
    • createProxyClass

      protected <T> Class<T> createProxyClass(Class<T> clazz, ClassLoader loader) throws Exception
      Throws:
      Exception
    • loadProxyClass

      protected <T> Class loadProxyClass(Class clazz, javassist.ClassPool pool, javassist.CtClass cc) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • defineProxyFields

      protected void defineProxyFields(javassist.ClassPool pool, javassist.CtClass cc) throws javassist.CannotCompileException, javassist.NotFoundException
      Throws:
      javassist.CannotCompileException
      javassist.NotFoundException
    • defineProxyMethods

      protected void defineProxyMethods(javassist.CtClass cc, javassist.CtClass orig) throws Exception
      Throws:
      Exception
    • toString

      public String toString(Method m)
    • toString

      public static String toString(javassist.CtMethod m)
    • getSortedNonPublicCtMethods

      protected javassist.CtMethod[] getSortedNonPublicCtMethods(javassist.CtClass orig) throws javassist.NotFoundException
      Throws:
      javassist.NotFoundException
    • getSortedPublicCtMethods

      public static javassist.CtMethod[] getSortedPublicCtMethods(javassist.CtClass orig, boolean onlyRemote) throws javassist.NotFoundException
      Throws:
      javassist.NotFoundException
    • getInheritedAnnotation

      public static <A extends Annotation> A getInheritedAnnotation(Class<A> annotationClass, AnnotatedElement element)