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

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

public class JdkReflectFactory
extends Object
implements ReflectFactory

Defines a reflection factory that uses the standard JDK.

Author:
Copyright © 2006 Frederic Daoud

Constructor Summary
JdkReflectFactory()
           
 
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

JdkReflectFactory

public JdkReflectFactory()
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.