org.jtools.util
Class ClassUtils
java.lang.Object
org.jtools.util.ClassUtils
public class ClassUtils
- extends Object
ClassLoading utilities.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassUtils
public ClassUtils()
getPackageName
public static String getPackageName(Class clazz,
String defaultPackage)
createOrGetObject
public static Object createOrGetObject(String classname,
Object context)
throws InvocationTargetException,
ClassNotFoundException,
NoSuchMethodException,
IllegalAccessException,
InstantiationException
- Throws:
InvocationTargetException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
InstantiationException
encodeArrayName
public static String encodeArrayName(String source)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getGetterMethod
public static Method getGetterMethod(Class clazz,
String nameOrProperty,
boolean isBoolean)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
getGetterMethodName
public static String getGetterMethodName(String property,
boolean isBoolean)
getSetterMethodName
public static String getSetterMethodName(String property)
getGetterMethodNoEx
public static Method getGetterMethodNoEx(Class clazz,
String nameOrProperty,
boolean isBoolean)
toClass
public static Class[] toClass(ArgumentDescriptor[] args)
toClass
public static Class[] toClass(ArgumentDescriptor[] args,
Object loaderContext)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
© 2000-2006, JTools.org.