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.codehaus.groovy.grails.commons.metaclass
Interface StaticMethodInvocation

All Known Implementing Classes:
  AbstractClausedStaticPersistentMethod, AbstractStaticMethodInvocation, AbstractStaticPersistentMethod, ClosureInvokingDynamicMethod, CountByPersistentMethod, CountPersistentMethod, CreateCriteriaPersistentMethod, CreateDynamicMethod, ExecuteQueryPersistentMethod, ExistsPersistentMethod, FindAllByPersistentMethod, FindAllPersistentMethod, FindAllWherePersistentMethod, FindByPersistentMethod, FindPersistentMethod, FindWherePersistentMethod, GetAllPersistentMethod, GetPersistentMethod, ListOrderByPersistentMethod, ListPersistentMethod, WithCriteriaDynamicPersistentMethod, WithTransactionPersistentMethod

    public interface StaticMethodInvocation

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

Since:
  Aug 7, 2005
Author:
  Steven Devijver

Method Summary
`Object` | `invoke(Class clazz, String methodName, Object[] arguments)` Invokes the actual method.
`boolean` | `isMethodMatch(String methodName)` Checks if a method name matches the criteria of the implementation class.

Method Detail

### isMethodMatch

    boolean isMethodMatch(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

### invoke

    Object invoke(Class clazz,
                  String methodName,
                  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

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 (c) 2005-2006 The Grails project