import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
-import org.opendaylight.yangtools.yang.binding.Identifier;
-
public class ClassLoaderUtils {
public static <V> V withClassLoader(ClassLoader cls,Callable<V> function) throws Exception {
Object[] initargs = objects.toArray(new Object[]{});
return constructor.newInstance(initargs);
}
+
+
+ public static Class<?> loadClassWithTCCL(String name) throws ClassNotFoundException {
+ return Thread.currentThread().getContextClassLoader().loadClass(name);
+ }
}
\ No newline at end of file