/** * Attempt to resolve the specified property type through reflection. * * @param clazz The class owning the property. * @param name The name of the property. * @return The type of the property. * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass(Class clazz, String name) throws MappingException { return getter( clazz, name ).getReturnType(); }
/** * Attempt to resolve the specified property type through reflection. * * @param className The name of the class owning the property. * @param name The name of the property. * @param classLoaderService ClassLoader services * * @return The type of the property. * * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass( String className, String name, ClassLoaderService classLoaderService) throws MappingException { try { Class clazz = classLoaderService.classForName( className ); return getter( clazz, name ).getReturnType(); } catch ( ClassLoadingException e ) { throw new MappingException( "class " + className + " not found while looking for property: " + name, e ); } }
/** * Attempt to resolve the specified property type through reflection. * * @param clazz The class owning the property. * @param name The name of the property. * @return The type of the property. * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass(Class clazz, String name) throws MappingException { return getter( clazz, name ).getReturnType(); }
/** * Attempt to resolve the specified property type through reflection. * * @param clazz The class owning the property. * @param name The name of the property. * @return The type of the property. * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass(Class clazz, String name) throws MappingException { return getter( clazz, name ).getReturnType(); }
/** * Attempt to resolve the specified property type through reflection. * * @param clazz The class owning the property. * @param name The name of the property. * @return The type of the property. * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass(Class clazz, String name) throws MappingException { return getter( clazz, name ).getReturnType(); }
/** * Attempt to resolve the specified property type through reflection. * * @param className The name of the class owning the property. * @param name The name of the property. * @return The type of the property. * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass(String className, String name) throws MappingException { try { Class clazz = ReflectHelper.classForName( className ); return getter( clazz, name ).getReturnType(); } catch ( ClassNotFoundException cnfe ) { throw new MappingException( "class " + className + " not found while looking for property: " + name, cnfe ); } }
/** * Attempt to resolve the specified property type through reflection. * * @param className The name of the class owning the property. * @param name The name of the property. * @return The type of the property. * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass(String className, String name) throws MappingException { try { Class clazz = ReflectHelper.classForName( className ); return getter( clazz, name ).getReturnType(); } catch ( ClassNotFoundException cnfe ) { throw new MappingException( "class " + className + " not found while looking for property: " + name, cnfe ); } }
/** * Attempt to resolve the specified property type through reflection. * * @param className The name of the class owning the property. * @param name The name of the property. * @param classLoaderService ClassLoader services * * @return The type of the property. * * @throws MappingException Indicates we were unable to locate the property. */ public static Class reflectedPropertyClass( String className, String name, ClassLoaderService classLoaderService) throws MappingException { try { Class clazz = classLoaderService.classForName( className ); return getter( clazz, name ).getReturnType(); } catch ( ClassLoadingException e ) { throw new MappingException( "class " + className + " not found while looking for property: " + name, e ); } }