Dynamic method invocation callback interface. Implementation classes can add a persistence functionality to Grails like save and delete.
Type | Name and description |
---|---|
java.lang.Object |
invoke(java.lang.Object target, 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. |
Invokes the actual method. The target object and arguments are supplied.
target
- the target on which the method is invoked.arguments
- the arguments passed in the method callChecks if a method name matches the criteria of the implementation class.
methodName
- the static method name