info.javelot.functionalj.reflect.element
Class ReflectCglibStaticMethod

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

public class ReflectCglibStaticMethod
extends ReflectJdkStaticMethod

Represents a reflect cglib static method.

Author:
Copyright © 2006 Frederic Daoud

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

Constructor Detail

ReflectCglibStaticMethod

public ReflectCglibStaticMethod(Method p_method)
Constructs a reflect element using a cglib method for a standard static method.

Parameters:
p_method - the reflect static method.
Method Detail

invoke

public Object invoke(Object[] p_params)
              throws Exception
Description copied from class: ReflectJdkStaticMethod
Invokes the target static method, passing the parameters to the method.

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