org.compass.core.util.reflection
Class ReflectionFactory

java.lang.Object
  extended by org.compass.core.util.reflection.ReflectionFactory

public class ReflectionFactory
extends Object

A factory allowing to create ReflectionMethod or ReflectionField implementations.

Author:
kimchy

Constructor Summary
ReflectionFactory()
           
 
Method Summary
static ReflectionConstructor getConstructor(CompassSettings settings, Constructor constructor)
           
static ReflectionConstructor getDefaultConstructor(CompassSettings settings, Class clazz)
           
static ReflectionField getField(CompassSettings settings, Field field)
           
static ReflectionMethod getMethod(CompassSettings settings, Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionFactory

public ReflectionFactory()
Method Detail

getMethod

public static ReflectionMethod getMethod(CompassSettings settings,
                                         Method method)
                                  throws NoSuchMethodException
Throws:
NoSuchMethodException

getField

public static ReflectionField getField(CompassSettings settings,
                                       Field field)
                                throws NoSuchFieldException
Throws:
NoSuchFieldException

getDefaultConstructor

public static ReflectionConstructor getDefaultConstructor(CompassSettings settings,
                                                          Class clazz)

getConstructor

public static ReflectionConstructor getConstructor(CompassSettings settings,
                                                   Constructor constructor)


Copyright (c) 2004-2009 The Compass Project.