org.apache.aries.blueprint.utils
Class ReflectionUtils

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

public class ReflectionUtils
extends Object

TODO: javadoc

Version:
$Rev: 1135629 $, $Date: 2011-06-14 16:01:01 +0100 (Tue, 14 Jun 2011) $

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 Set<Class<?>> getImplementedInterfacesAsClasses(Set<Class<?>> classes, Class<?> clazz)
           
static Method getLifecycleMethod(Class clazz, String name)
           
static ReflectionUtils.PropertyDescriptor[] getPropertyDescriptors(Class clazz, boolean allowFieldInjection)
           
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)

getImplementedInterfacesAsClasses

public static Set<Class<?>> getImplementedInterfacesAsClasses(Set<Class<?>> 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,
                                                                          boolean allowFieldInjection)

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 © 2009-2011 The Apache Software Foundation. All Rights Reserved.