Package it.tidalwave.util.spi
Class ReflectionUtils
- java.lang.Object
-
- it.tidalwave.util.spi.ReflectionUtils
-
public class ReflectionUtils extends Object
Just slightly adapted from http://www.artima.com/weblogs/viewpost.jsp?thread=208860- Version:
- $Id$
- Author:
- Ian Robertson, Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>getClass(Type type)static <T> List<Class<?>>getTypeArguments(Class<T> baseClass, Class<? extends T> childClass)Get the actual type arguments a child class has used to extend a generic base class.
-
-
-
Method Detail
-
getTypeArguments
public static <T> List<Class<?>> getTypeArguments(@Nonnull Class<T> baseClass, @Nonnull Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic base class.- Parameters:
baseClass- the base classchildClass- the child class- Returns:
- a list of the raw classes for the actual type arguments.
-
-