org.qi4j.test.mock.internal
Interface MockResolver

All Known Implementing Classes:
MethodClassMatcherMockResolver, MockResolverProxy, UnresolvableMockResolver

public interface MockResolver

Resolves the invocation handler for a registred mock. Actual matching method is specific to each implementation.


Method Summary
 InvocationHandler getInvocationHandler(Object proxy, Method method, Object[] args)
          Matches the method invocation to an invocation handler for a registered mock.
 

Method Detail

getInvocationHandler

InvocationHandler getInvocationHandler(Object proxy,
                                       Method method,
                                       Object[] args)
Matches the method invocation to an invocation handler for a registered mock.

Parameters:
proxy - object on which the method was invoked
method - invoked method
args - invocation arguments
Returns:
invocation handler if this resolved can handle the call or null otherwise.