StaticMethodInvocation (Grails 2.4.4)
Date: 2014-10-28

Package: org.codehaus.groovy.grails.commons.metaclass

## [Java] Interface StaticMethodInvocation

- Static method invocation callback interface. Implementation classes can add static persistent functionality to Grails like finder methods.

  Authors:
    Steven Devijver

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.lang.Object` | `invoke(java.lang.Class clazz, java.lang.String methodName, java.lang.Object[] arguments)` Invokes the actual method.
    `boolean` | `isMethodMatch(java.lang.String methodName)` Checks if a method name matches the criteria of the implementation class.

- - ### Method Detail

    - #### public java.lang.Object invoke(@java.lang.SuppressWarnings("rawtypes") java.lang.Class clazz, java.lang.String methodName, java.lang.Object[] arguments)

      Invokes the actual method. The class, method name and arguments are provided. If no arguments are passed the argument array is empty.

      Parameters:
        `clazz` - the class the static method is called on
        `methodName` - the static method name
        `arguments` - the arguments supplied
      Returns:
        the return value of the static method invocation

    - #### public boolean isMethodMatch(java.lang.String methodName)

      Checks if a method name matches the criteria of the implementation class.

      Parameters:
        `methodName` - the static method name
      Returns:
        result of criteria match test