Class CachedInteraction

    • Constructor Detail

      • CachedInteraction

        public CachedInteraction()
    • Method Detail

      • getConstructor

        protected java.lang.reflect.Constructor<?> getConstructor​(java.lang.Class<?> clazz,
                                                                  java.lang.Object[] args)
        Overrides:
        getConstructor in class SimpleInteraction
        Parameters:
        clazz - the class to be executed
        args - the class constructor arguments values
        Returns:
        the class constructor with the arguments types equals with args, otherwise return the first constructor which matches as arguments number
      • getConstructorKey

        protected java.lang.String getConstructorKey​(java.lang.Class<?> clazz,
                                                     java.lang.Object[] args)
      • getClass

        protected java.lang.Class<?> getClass​(java.lang.String className)
        Overrides:
        getClass in class SimpleInteraction
      • findMatchingMethod

        protected java.lang.reflect.Method findMatchingMethod​(java.lang.String methodName,
                                                              java.lang.Object instance,
                                                              java.lang.Object... args)
        Overrides:
        findMatchingMethod in class SimpleInteraction
      • handleConstructorCacheMiss

        protected java.lang.reflect.Constructor<?> handleConstructorCacheMiss​(java.lang.Class<?> clazz,
                                                                              java.lang.Object[] args)
      • handleClassCacheMiss

        protected java.lang.Class<?> handleClassCacheMiss​(java.lang.String className)
      • handleMethodCacheMiss

        protected java.lang.reflect.Method handleMethodCacheMiss​(java.lang.String methodName,
                                                                 java.lang.Object instance,
                                                                 java.lang.Object[] args)