Package fitnesse.slim.fixtureInteraction
Class CachedInteraction
- java.lang.Object
-
- fitnesse.slim.fixtureInteraction.SimpleInteraction
-
- fitnesse.slim.fixtureInteraction.CachedInteraction
-
- All Implemented Interfaces:
FixtureInteraction
- Direct Known Subclasses:
DefaultInteraction
public class CachedInteraction extends SimpleInteraction
-
-
Constructor Summary
Constructors Constructor Description CachedInteraction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.reflect.Method
findMatchingMethod(java.lang.String methodName, java.lang.Object instance, java.lang.Object... args)
protected java.lang.Class<?>
getClass(java.lang.String className)
protected java.lang.reflect.Constructor<?>
getConstructor(java.lang.Class<?> clazz, java.lang.Object[] args)
protected java.lang.String
getConstructorKey(java.lang.Class<?> clazz, java.lang.Object[] args)
protected java.lang.Class<?>
handleClassCacheMiss(java.lang.String className)
protected java.lang.reflect.Constructor<?>
handleConstructorCacheMiss(java.lang.Class<?> clazz, java.lang.Object[] args)
protected java.lang.reflect.Method
handleMethodCacheMiss(java.lang.String methodName, java.lang.Object instance, java.lang.Object[] args)
-
Methods inherited from class fitnesse.slim.fixtureInteraction.SimpleInteraction
callMethod, convertArgs, createInstance, findAndInvoke, invokeMethod, methodInvoke, newInstance, searchPathsForClass
-
-
-
-
Method Detail
-
getConstructor
protected java.lang.reflect.Constructor<?> getConstructor(java.lang.Class<?> clazz, java.lang.Object[] args)
- Overrides:
getConstructor
in classSimpleInteraction
- Parameters:
clazz
- the class to be executedargs
- 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 classSimpleInteraction
-
findMatchingMethod
protected java.lang.reflect.Method findMatchingMethod(java.lang.String methodName, java.lang.Object instance, java.lang.Object... args)
- Overrides:
findMatchingMethod
in classSimpleInteraction
-
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)
-
-