org.dozer.util
Class TypeResolver
java.lang.Object
org.dozer.util.TypeResolver
public final class TypeResolver
- extends Object
Utility class to map from a Java 5 Type to the Class that is represented by this Type at runtime.
- Author:
- andor.greissl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resolvePropertyType
public static Class<?> resolvePropertyType(Class<?> targetClass,
Method readMethod,
Method writeMethod)
- Try to resolve the property type for the supplied methods and target class. The supplied read and write methods
should resemble a Java bean property (setter and getter)
- Parameters:
targetClass - the target class of the propertyreadMethod - the read method of the propertywriteMethod - the write method of the property
- Returns:
- the actual class of the property type
Copyright © 2005-2011 dozer. All Rights Reserved.