|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.unittest.mocks.DefaultInvocationHandler
public class DefaultInvocationHandler
This invocation handler is used by the Skeleton when nothing else is matched. If the return type is an interface it creates a dynamic proxy backed by the associated skeleton for return, if it is a class with a default constructor that will be returned.
Constructor Summary | |
---|---|
DefaultInvocationHandler(Skeleton s)
Creates an instance called by the specified skeleton. |
Method Summary | |
---|---|
Object |
createProxy(Class<?>... returnTypes)
Creates and returns a proxy backed by the associated skeleton, that implements the specified interfaces. |
Object |
invoke(Object target,
Method method,
Object[] arguments)
Invoked when no ReturnType or MethodCall Handlers are defined. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultInvocationHandler(Skeleton s)
s
- The caller.Method Detail |
---|
public Object invoke(Object target, Method method, Object[] arguments) throws Throwable
invoke
in interface InvocationHandler
target
- The target object that was invoked.method
- The method that was invoked.arguments
- The arguments that were passed.
Throwable
public Object createProxy(Class<?>... returnTypes)
returnTypes
- The classes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |