Class ActivityInvocationHandlerBase

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler
    Direct Known Subclasses:
    ActivityInvocationHandler, LocalActivityInvocationHandler

    public abstract class ActivityInvocationHandlerBase
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    Dynamic implementation of a strongly typed activity interface.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.util.function.Function<java.lang.Object[],​java.lang.Object> getActivityFunc​(java.lang.reflect.Method method, MethodRetry methodRetry, java.lang.String activityName)  
      protected void init​(java.lang.Class<?> activityInterface)  
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      static <T> T newProxy​(java.lang.Class<T> activityInterface, java.lang.reflect.InvocationHandler invocationHandler)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActivityInvocationHandlerBase

        public ActivityInvocationHandlerBase()
    • Method Detail

      • newProxy

        public static <T> T newProxy​(java.lang.Class<T> activityInterface,
                                     java.lang.reflect.InvocationHandler invocationHandler)
      • init

        protected void init​(java.lang.Class<?> activityInterface)
      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
      • getActivityFunc

        protected abstract java.util.function.Function<java.lang.Object[],​java.lang.Object> getActivityFunc​(java.lang.reflect.Method method,
                                                                                                                  MethodRetry methodRetry,
                                                                                                                  java.lang.String activityName)