org.apache.commons.discovery.tools
public class ClassUtils extends Object
| Method Summary | |
|---|---|
| static Method | findPublicStaticMethod(Class clazz, Class returnType, String methodName, Class[] paramTypes) |
| static String | getPackageName(Class clazz)
Get package name.
|
| static Object | newInstance(Class impl, Class[] paramClasses, Object[] params)
Instantiate a new |
| static void | setLog(Log _log) |
| static void | verifyAncestory(Class spi, Class impl)
Throws exception if impl does not
implement or extend the SPI. |
Returns: Method 'public static returnType methodName(paramTypes)', if found to be directly implemented by clazz.
impl does not
implement or extend the SPI.