org.apache.tapestry5.services
Interface MethodAccess

All Known Implementing Classes:
AbstractMethodAccess

Deprecated. Deprecated in 5.3

public interface MethodAccess

Represents a bridge to an object method, when that method may not be public. A MethodAccess object encapsulates the approach for invoking the method and capturing the result (either the return value, or the checked exception that is thrown).

Since:
5.2.0
See Also:
TransformMethod.getAccess(), PlasticClass, PlasticMethod, MethodHandle

Method Summary
 MethodInvocationResult invoke(Object target, Object... arguments)
          Deprecated. Invoke the method on the target, passing a number of arguments to the method.
 

Method Detail

invoke

MethodInvocationResult invoke(Object target,
                              Object... arguments)
Deprecated. 
Invoke the method on the target, passing a number of arguments to the method. If the method throws a RuntimeException, that is passed through unchanged. If the method throws a checked exception, that will be reflected in the invocation result.

Parameters:
target - object on which to invoke a method
arguments - arguments to pass to the method


Copyright © 2003-2012 The Apache Software Foundation.