|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.util.ClassUtils
public class ClassUtils
Utility methods for dealing with classes.
| Method Summary | ||
|---|---|---|
static java.lang.String |
getShortName(java.lang.Class<?> aClass)
Computes the short name (name without package) of this class. |
|
static
|
instantiate(java.lang.String className)
Creates a new instance of this class. |
|
static boolean |
isPresent(java.lang.String className)
Determine whether the Class identified by the supplied name is present
and can be loaded. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T instantiate(java.lang.String className)
throws java.lang.Exception
T - The type of the new instance.className - The fully qualified name of the class to instantiate.
java.lang.Exception - Thrown when the instantiation failed.public static boolean isPresent(java.lang.String className)
Class identified by the supplied name is present
and can be loaded. Will return false if either the class or
one of its dependencies is not present or cannot be loaded.
className - the name of the class to check
public static java.lang.String getShortName(java.lang.Class<?> aClass)
aClass - The class to analyse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||