@Override public ClassLoader getClassLoader() { return manager.getClassLoader(); }
public Class toClass(String typeName) { try { return PlasticInternalUtils.toClass(manager.getClassLoader(), typeName); } catch (ClassNotFoundException ex) { throw new RuntimeException(String.format( "Unable to convert type '%s' to a Class: %s", typeName, ExceptionUtils.toMessage(ex)), ex); } }
private ClassNode readClassNode(Class clazz) { byte[] bytecode = PlasticInternalUtils.readBytecodeForClass(manager.getClassLoader(), clazz.getName(), false); return bytecode == null ? null : PlasticInternalUtils.convertBytecodeToClassNode(bytecode); }