org.codehaus.groovy.grails.commons.metaclass
Class AbstractDynamicConstructor

java.lang.Object
  extended by org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicConstructor
All Implemented Interfaces:
DynamicConstructor

public abstract class AbstractDynamicConstructor
extends Object
implements DynamicConstructor

Abstract class that provides default implementation for isArgumentsMatch.

Since:
0.2
Author:
Graeme Rocher

Constructor Summary
AbstractDynamicConstructor(Class<?>[] argumentTypes)
          Takes an array of types required to match this constructor.
 
Method Summary
 boolean isArgumentsMatch(Object[] args)
          Test whether the specified arguments match this constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.groovy.grails.commons.metaclass.DynamicConstructor
invoke
 

Constructor Detail

AbstractDynamicConstructor

public AbstractDynamicConstructor(Class<?>[] argumentTypes)
Takes an array of types required to match this constructor.

Parameters:
argumentTypes - The argument types
Method Detail

isArgumentsMatch

public boolean isArgumentsMatch(Object[] args)
Description copied from interface: DynamicConstructor
Test whether the specified arguments match this constructor.

Specified by:
isArgumentsMatch in interface DynamicConstructor
Parameters:
args - The arguments to check
Returns:
True if the arguments types match those specified in the constructor