Hello.
I'm trying to define a custom classloader to create certain classes at runtime.
My classloader itself is just deriving from ClassLoadder and overriding the findClass with something like
@Override protected Class<?> findClass(String className) throws ClassNotFoundException { ClassLoader parentLoader = this.getClass().getClassLoader(); if(className.equals("classToBeCreatedAtRuntime")){ Class c = createClass(className); return c; }else{ return Class.forName(className, true, parentLoader); } }