1 2 12 package com.versant.core.util.classhelper; 13 14 public abstract class ClassHelper { 15 16 private static ClassHelper impl = 17 18 new com.versant.core.util.classhelper.jdk12.ClassHelperImpl(); 19 20 21 22 public static ClassHelper get() { 23 return impl; 24 } 25 26 public abstract Class classForName(String clazz, boolean validate, 27 ClassLoader loader) 28 throws ClassNotFoundException ; 29 30 public abstract ClassLoader getContextClassLoader(Thread thread); 31 32 public abstract ClassLoader getSystemClassLoader(); 33 34 public abstract void setAccessible(java.lang.reflect.Field field, boolean value); 35 36 public abstract void setAccessible(java.lang.reflect.Constructor ctor, boolean value); 37 38 public abstract Object getFieldValue(java.lang.reflect.Field field, Object obj) throws IllegalAccessException ; 39 } 40 | Popular Tags |