org.apache.tapestry5.ioc.internal.util
Class GenericsUtils
java.lang.Object
org.apache.tapestry5.ioc.internal.util.GenericsUtils
public class GenericsUtils
- extends Object
Static methods related to the use of JDK 1.5 generics.
|
Method Summary |
static Class |
extractGenericReturnType(Class type,
Method method)
Analyzes the method (often defined in a base class) in the context of a particular concrete implementation of the
class to establish the generic type of a property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericsUtils
public GenericsUtils()
extractGenericReturnType
public static Class extractGenericReturnType(Class type,
Method method)
- Analyzes the method (often defined in a base class) in the context of a particular concrete implementation of the
class to establish the generic type of a property. This works when the property type is defined as a class
generic parameter.
- Parameters:
type - base type for evaluationmethod - method (possibly from a base class of type) to extract
- Returns:
- the generic type if it may be determined, or the raw type (that is, with type erasure, most often
Object)
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.