org.acegisecurity.domain.util
Class GenericsUtils

java.lang.Object
  extended by 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

Constructor Summary
GenericsUtils()
           
 
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
 

Constructor Detail

GenericsUtils

public GenericsUtils()
Method Detail

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.