Apache CXF API

org.apache.cxf.common.util
Class ReflectionUtil

java.lang.Object
  extended by org.apache.cxf.common.util.ReflectionUtil

public final class ReflectionUtil
extends java.lang.Object


Method Summary
static java.util.List<java.lang.String> getPackagesFromJar(java.io.File jarFile)
           
static java.beans.PropertyDescriptor[] getPropertyDescriptorsAvoidSunBug(java.lang.Class<?> refClass, java.beans.BeanInfo beanInfo, java.lang.Class<?> beanClass, java.beans.PropertyDescriptor[] propertyDescriptors)
          create own array of property descriptors to:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPackagesFromJar

public static java.util.List<java.lang.String> getPackagesFromJar(java.io.File jarFile)
                                                           throws java.io.IOException
Throws:
java.io.IOException

getPropertyDescriptorsAvoidSunBug

public static java.beans.PropertyDescriptor[] getPropertyDescriptorsAvoidSunBug(java.lang.Class<?> refClass,
                                                                                java.beans.BeanInfo beanInfo,
                                                                                java.lang.Class<?> beanClass,
                                                                                java.beans.PropertyDescriptor[] propertyDescriptors)
create own array of property descriptors to:
  - prevent memory leaks by Introspector's cache
  - get correct type for generic properties from superclass
     that are limited to a specific type in beanClass
    see http://bugs.sun.com/view_bug.do?bug_id=6528714
   we cannot use BeanUtils.getPropertyDescriptors because of issue SPR-6063
   

Parameters:
refClass - calling class for class loading.
beanInfo - Bean in question
beanClass - class for bean in question
propertyDescriptors - raw descriptors
Returns:

Apache CXF API

Apache CXF