org.apache.geronimo.blueprint.utils
Class ReflectionUtils

java.lang.Object
  extended by org.apache.geronimo.blueprint.utils.ReflectionUtils

public class ReflectionUtils
extends Object

TODO: javadoc

Version:
$Rev: 796863 $, $Date: 2009-07-22 22:11:18 +0200 (Wed, 22 Jul 2009) $
Author:
Apache Geronimo Project

Nested Class Summary
static class ReflectionUtils.PropertyDescriptor
           
 
Constructor Summary
ReflectionUtils()
           
 
Method Summary
static List<Method> findCompatibleMethods(Class clazz, String name, Class[] paramTypes)
           
static Set<String> getImplementedInterfaces(Set<String> classes, Class clazz)
           
static Method getLifecycleMethod(Class clazz, String name)
           
static ReflectionUtils.PropertyDescriptor[] getPropertyDescriptors(Class clazz)
           
static Throwable getRealCause(Throwable t)
           
static Set<String> getSuperClasses(Set<String> classes, Class clazz)
           
static boolean hasDefaultConstructor(Class type)
           
static Object invoke(AccessControlContext acc, Method method, Object instance, Object... args)
           
static Object newInstance(AccessControlContext acc, Class clazz)
           
static Object newInstance(AccessControlContext acc, Constructor constructor, Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtils

public ReflectionUtils()
Method Detail

hasDefaultConstructor

public static boolean hasDefaultConstructor(Class type)

getImplementedInterfaces

public static Set<String> getImplementedInterfaces(Set<String> classes,
                                                   Class clazz)

getSuperClasses

public static Set<String> getSuperClasses(Set<String> classes,
                                          Class clazz)

getLifecycleMethod

public static Method getLifecycleMethod(Class clazz,
                                        String name)

findCompatibleMethods

public static List<Method> findCompatibleMethods(Class clazz,
                                                 String name,
                                                 Class[] paramTypes)

getPropertyDescriptors

public static ReflectionUtils.PropertyDescriptor[] getPropertyDescriptors(Class clazz)

invoke

public static Object invoke(AccessControlContext acc,
                            Method method,
                            Object instance,
                            Object... args)
                     throws Exception
Throws:
Exception

newInstance

public static Object newInstance(AccessControlContext acc,
                                 Class clazz)
                          throws Exception
Throws:
Exception

newInstance

public static Object newInstance(AccessControlContext acc,
                                 Constructor constructor,
                                 Object... args)
                          throws Exception
Throws:
Exception

getRealCause

public static Throwable getRealCause(Throwable t)


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.