Class CallbackClosure
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.util.CallbackClosure
- All Implemented Interfaces:
org.apache.commons.collections.Closure
A closure that determines a callback for the type of the object and calls it.
Note that inheritance is also taken into account. I.e. if the object is of
type B which is a subtype of A, and there is only a callback for type A,
then this one will be invoked. If there is however also a callback for type B,
then only this callback for type B will be invoked and not the one for type A.
- Version:
- $Revision: $
-
Constructor Summary
ConstructorsConstructorDescriptionCallbackClosure
(Object callee, String callbackName, Class[] parameterTypes, Object[] parameters) Creates a new closure object. -
Method Summary
-
Constructor Details
-
CallbackClosure
public CallbackClosure(Object callee, String callbackName, Class[] parameterTypes, Object[] parameters) Creates a new closure object.- Parameters:
callee
- The object on which the callbacks will be invokedcallbackName
- The name of the callback methodparameterTypes
- The parameter types. This array has to contain onenull
for the type of the object for which the callback is invoked.null
or an empty array is regarded to be the same as an array containing a singlenull
parameters
- The actual arguments. The value at the placeholder position will be ignored. Can benull
if no parameter types where given
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceorg.apache.commons.collections.Closure
- Throws:
DdlUtilsException
-