org.bushe.swing.event.generics
Class TypeReference<T>
java.lang.Object
org.bushe.swing.event.generics.TypeReference<T>
public abstract class TypeReference<T>
- extends Object
Courtesy of Neil Gafter's blog.
Thanks to Curt Cox for the pointer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeReference
protected TypeReference()
newInstance
public T newInstance()
throws NoSuchMethodException,
IllegalAccessException,
InvocationTargetException,
InstantiationException
- Returns:
- a new instance of
T
using the default, no-arg
constructor.
- Throws:
IllegalAccessException
- on security reflection issues
NoSuchMethodException
- there's not getRawType on the type
InvocationTargetException
- if a reflective call causes an exception in the underlying instance
InstantiationException
- if the instance cannot be instantiated
getType
public Type getType()
- Returns:
- the referenced type.
Copyright © 2011 Bushe Enterprises, Inc.. All Rights Reserved.