package us.noop.ulytils;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

public class PageClassLoader<T> extends ClassLoader {
	
	@SuppressWarnings("unchecked")
	public T loadClass(File file, Object... args) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassFormatError, IOException{
		byte[] data = new byte[(int) file.length()];
		FileInputStream f = new FileInputStream(file);
		f.read(data);
		f.close();
		Class<?>[] ty = new Class<?>[args.length];
		for(int i = 0; i < args.length; ++i){
			ty[i] = args[i].getClass();
		}
		return (T) defineClass(null, data, 0, data.length).getConstructor(ty).newInstance(args);
	}
}
@@ -13,15 +13,21 @@
 oop.
-ulytils
+server.plugin
 ;%0A%0Ai
@@ -191,11 +191,8 @@
 ader
-%3CT%3E
  ext
@@ -252,17 +252,20 @@
 %09public 
-T
+Page
  loadCla
@@ -280,24 +280,8 @@
 file
-, Object... args
 ) th
@@ -590,137 +590,20 @@
 ;%0A%09%09
-Class%3C?%3E%5B%5D ty = new Class%3C?%3E%5Bargs.length%5D;%0A%09%09for(int i = 0; i %3C args.length; ++i)%7B%0A%09%09%09ty%5Bi%5D = args%5Bi%5D.getClass();%0A%09%09%7D%0A%09%09return (T
+return (Page
 ) de
@@ -675,15 +675,12 @@
 nce(
-args
 );%0A%09%7D%0A%7D
+%0A

Update PageClassLoader.java