info.javelot.functionalj.reflect.helper.impl
Class CglibReflectFactory

java.lang.Object
  extended by info.javelot.functionalj.reflect.helper.impl.CglibReflectFactory
All Implemented Interfaces:
ReflectFactory

public class CglibReflectFactory
extends Object
implements ReflectFactory

Defines a reflection factory that uses cglib.

Author:
Copyright © 2006 Frederic Daoud

Constructor Summary
CglibReflectFactory()
           
 
Method Summary
 ReflectElement getReflectConstructor(Constructor p_constr)
          Produces a function that invokes the specified constructor.
 ReflectElement getReflectInstanceMethod(Method p_method)
          Produces a function that invokes the specified instance method.
 ReflectElement getReflectStaticMethod(Method p_method)
          Produces a function that invokes the specified static method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CglibReflectFactory

public CglibReflectFactory()
Method Detail

getReflectConstructor

public ReflectElement getReflectConstructor(Constructor p_constr)
Description copied from interface: ReflectFactory
Produces a function that invokes the specified constructor.

Specified by:
getReflectConstructor in interface ReflectFactory
Parameters:
p_constr - the constructor to be invoked by the produced function.

getReflectInstanceMethod

public ReflectElement getReflectInstanceMethod(Method p_method)
Description copied from interface: ReflectFactory
Produces a function that invokes the specified instance method.

Specified by:
getReflectInstanceMethod in interface ReflectFactory
Parameters:
p_method - the instance method to be invoked by the produced function.

getReflectStaticMethod

public ReflectElement getReflectStaticMethod(Method p_method)
Description copied from interface: ReflectFactory
Produces a function that invokes the specified static method.

Specified by:
getReflectStaticMethod in interface ReflectFactory
Parameters:
p_method - the static method to be invoked by the produced function.