info.javelot.functionalj.reflect.helper
Interface ReflectFactory

All Known Implementing Classes:
CglibReflectFactory, JdkReflectFactory

public interface ReflectFactory

Interface to define a factory that produces reflect elements from constructors and methods.

Author:
Copyright © 2006 Frederic Daoud

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.
 

Method Detail

getReflectConstructor

ReflectElement getReflectConstructor(Constructor p_constr)
Produces a function that invokes the specified constructor.

Parameters:
p_constr - the constructor to be invoked by the produced function.

getReflectInstanceMethod

ReflectElement getReflectInstanceMethod(Method p_method)
Produces a function that invokes the specified instance method.

Parameters:
p_method - the instance method to be invoked by the produced function.

getReflectStaticMethod

ReflectElement getReflectStaticMethod(Method p_method)
Produces a function that invokes the specified static method.

Parameters:
p_method - the static method to be invoked by the produced function.