/** * Get's the java bean info for the given source object. Calls getBeanInfo(Class c). * * @param from the source object. * @return java bean info. * @throws IntrospectionException is thrown if an exception occurs during introspection. */ public BeanInfo getBeanInfo(Object from) throws IntrospectionException { return getBeanInfo(from.getClass()); }
/** * Get's the java beans property descriptors for the given source. * * @param source the source object. * @return property descriptors. * @throws IntrospectionException is thrown if an exception occurs during introspection. */ public PropertyDescriptor[] getPropertyDescriptors(Object source) throws IntrospectionException { BeanInfo beanInfo = getBeanInfo(source); return beanInfo.getPropertyDescriptors(); }
/** * Get's the java beans property descriptors for the given class. * * @param clazz the source object. * @return property descriptors. * @throws IntrospectionException is thrown if an exception occurs during introspection. */ public PropertyDescriptor[] getPropertyDescriptors(Class clazz) throws IntrospectionException { BeanInfo beanInfo = getBeanInfo(clazz); return beanInfo.getPropertyDescriptors(); }