railo.runtime.reflection.pairs
Class ConstructorInstance

java.lang.Object
  extended by railo.runtime.reflection.pairs.ConstructorInstance

public final class ConstructorInstance
extends Object

class holds a Constructor and the parameter to call it


Constructor Summary
ConstructorInstance(Constructor constructor, Object[] args)
          constructor of the class
 
Method Summary
 Object[] getArgs()
           
 Constructor getConstructor()
           
 Object invoke()
          Invokes the method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstructorInstance

public ConstructorInstance(Constructor constructor,
                           Object[] args)
constructor of the class

Parameters:
constructor -
args -
Method Detail

invoke

public Object invoke()
              throws IllegalArgumentException,
                     InstantiationException,
                     IllegalAccessException,
                     InvocationTargetException
Invokes the method

Returns:
return value of the Method
Throws:
InvocationTargetException
IllegalAccessException
InstantiationException
IllegalArgumentException

getArgs

public Object[] getArgs()
Returns:
Returns the args.

getConstructor

public Constructor getConstructor()
Returns:
Returns the constructor.


Copyright © 2012 Railo