Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.plastic
Interface MethodHandle

All Known Implementing Classes:
  MethodHandleImpl

    public interface MethodHandle

Similiar to `Method`, this allows a method of a Plastic class to be invoked regardless of visibility. Plastic ensures that reflection is not necessary.

Method Summary
`MethodInvocationResult` | `invoke(java.lang.Object instance, java.lang.Object... arguments)` Invokes the method for this handle on the instance.

Method Detail

### invoke

    MethodInvocationResult invoke(java.lang.Object instance,
                                  java.lang.Object... arguments)

  Invokes the method for this handle on the instance.

  Parameters:
    `instance` - the instance containing the method to invoke
    `arguments` - the arguments, if any, to pass to the method. Wrapper types will be unwrapped as necessary to perform the invocation.
  Returns:
    result object encapsulating the actual return value or the checked exception thrown by the method
  Throws:
    `java.lang.ClassCastException` - if instance is not the correct type for this method.
    `java.lang.RuntimeException` - if the actual method throws a runtime exception

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.