info.javelot.functionalj.reflect.element
Class ReflectCglibConstructor

java.lang.Object
  extended by info.javelot.functionalj.reflect.element.ReflectJdkConstructor
      extended by info.javelot.functionalj.reflect.element.ReflectCglibConstructor
All Implemented Interfaces:
ReflectElement

public class ReflectCglibConstructor
extends ReflectJdkConstructor

Represents a reflect cglib constructor.

Author:
Copyright © 2006 Frederic Daoud

Constructor Summary
ReflectCglibConstructor(Constructor p_constr)
          Constructs a reflect element using a cglib constructor for the specified standard constructor.
 
Method Summary
 Object invoke(Object[] p_params)
          Invokes the target constructor, passing the specified parameters.
 
Methods inherited from class info.javelot.functionalj.reflect.element.ReflectJdkConstructor
getName, getParameterTypes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectCglibConstructor

public ReflectCglibConstructor(Constructor p_constr)
Constructs a reflect element using a cglib constructor for the specified standard constructor.

Parameters:
p_constr - the constructor for which to construct a reflect element.
Method Detail

invoke

public Object invoke(Object[] p_params)
              throws Exception
Description copied from class: ReflectJdkConstructor
Invokes the target constructor, passing the specified parameters.

Specified by:
invoke in interface ReflectElement
Overrides:
invoke in class ReflectJdkConstructor
Parameters:
p_params - the parameters to be passed to the constructor.
Returns:
the result of invoking the constructor.
Throws:
Exception - thrown if an exception occurs when invoking the constructor.