org.apache.ftpserver.util
Class ClassUtils
java.lang.Object
org.apache.ftpserver.util.ClassUtils
public class ClassUtils
- extends Object
Internal class, do not use directly.
- Author:
- Apache MINA Project *
Method Summary |
static boolean |
extendsClass(Class<?> clazz,
String className)
Checks if a class is a subclass of a class with the specified name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassUtils
public ClassUtils()
extendsClass
public static boolean extendsClass(Class<?> clazz,
String className)
- Checks if a class is a subclass of a class with the specified name. Used
as an instanceOf without having to load the class, useful when trying to
check for classes that might not be available in the runtime JRE.
- Parameters:
clazz
- The class to checkclassName
- The class name to look for in the super classes
- Returns:
- true if the class extends a class by the specified name.
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.