net.sf.mmapps.commons.util
Class ReflectionUtil
java.lang.Object
net.sf.mmapps.commons.util.ReflectionUtil
public class ReflectionUtil
- extends java.lang.Object
Method Summary |
static java.lang.Object |
createInstance(java.lang.String className)
|
static java.lang.Object |
createInstance(java.lang.String className,
java.lang.Class[] classes,
java.lang.Object[] arguments)
|
static java.lang.Object |
createInstance(java.lang.String className,
java.lang.Object[] arguments)
|
static java.lang.Class[] |
getClasses(java.lang.Object[] arguments)
|
static boolean |
hasConstructor(java.lang.String className,
java.lang.Class[] classes)
|
static boolean |
hasConstructor(java.lang.String className,
java.lang.Object[] arguments)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createInstance
public static java.lang.Object createInstance(java.lang.String className)
throws java.lang.Exception
- Throws:
java.lang.Exception
createInstance
public static java.lang.Object createInstance(java.lang.String className,
java.lang.Object[] arguments)
throws java.lang.Exception
- Throws:
java.lang.Exception
createInstance
public static java.lang.Object createInstance(java.lang.String className,
java.lang.Class[] classes,
java.lang.Object[] arguments)
throws java.lang.Exception
- Throws:
java.lang.Exception
hasConstructor
public static boolean hasConstructor(java.lang.String className,
java.lang.Object[] arguments)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
hasConstructor
public static boolean hasConstructor(java.lang.String className,
java.lang.Class[] classes)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
getClasses
public static java.lang.Class[] getClasses(java.lang.Object[] arguments)
Copyright © 2003-2006 mmapps. All Rights Reserved.