org.apache.aries.unittest.mocks
Interface MethodCallHandler
public interface MethodCallHandler
Implementations of this interface perform function when a method is called. The
handler is provided details of the method called along with the skeleton used
for the call.
handle
Object handle(MethodCall methodCall,
Skeleton parent)
throws Exception
- Parameters:
methodCall
- the method that was calledparent
- the skeleton it was called on
- Returns:
- an object to be returned (optional)
- Throws:
Exception
- an exception in case of failure.
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.