@Test public void testFindContainingJar() throws ClassNotFoundException { Assert.assertTrue(ClassUtil.findContainingJar(Class.forName("org.apache.commons.beanutils.BeanUtils")).contains("commons-beanutils")); Assert.assertTrue(ClassUtil.findContainingJar(Class.forName("org.apache.commons.beanutils.BeanUtils"), "core").contains("commons-beanutils-core")); }
public static String findContainingJar(Class<?> clazz) { return findContainingJar(clazz, null); }
ClassUtil { public static String findContainingJar(Class<?> clazz) { return findContainingJar(clazz, null); } }
ClassUtil { public static String findContainingJar(Class<?> clazz) { return findContainingJar(clazz, null); } private  ClassUtil(); }
ClassUtil { public static String findContainingJar(Class<?> clazz) { return findContainingJar(clazz, null); } private  ClassUtil(); static void addClasspath(String path); static Class<? extends T> forName(String name, Class<T> clz); static Object newInstance(String clz); static String findContainingJar(Class<?> clazz); static String findContainingJar(Class<?> clazz, String preferJarKeyWord); static String findContainingJar(String className, String perferLibraryName); }
ClassUtil { public static String findContainingJar(Class<?> clazz) { return findContainingJar(clazz, null); } private  ClassUtil(); static void addClasspath(String path); static Class<? extends T> forName(String name, Class<T> clz); static Object newInstance(String clz); static String findContainingJar(Class<?> clazz); static String findContainingJar(Class<?> clazz, String preferJarKeyWord); static String findContainingJar(String className, String perferLibraryName);  }