org.acegisecurity.domain.util
Class GenericsUtils
java.lang.Object
org.acegisecurity.domain.util.GenericsUtils
public class GenericsUtils
- extends Object
Provides a helper that locates the declarated generics type of a class.
- Version:
- $Id: GenericsUtils.java,v 1.2 2005/11/17 00:55:50 benalex Exp $
- Author:
- Ben Alex
|
Method Summary |
static Class |
getGeneric(Class clazz)
Locates the first generic declaration on a class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericsUtils
public GenericsUtils()
getGeneric
public static Class getGeneric(Class clazz)
- Locates the first generic declaration on a class.
- Parameters:
clazz - The class to introspect
- Returns:
- the first generic declaration, or
null if cannot be determined
Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.