final URLClassLoader urlClassLoader = new URLClassLoader(new URL[] { new URL("file:myfile") });
return urlClassLoader;
}
private GraphClassLoader newGraphClassLoader() {
TypeReaderRegistry typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
ModuleLocationResolver resolver = new StandaloneModuleLocationResolver();
InternalModuleDefinitionSource source = new InternalModuleDefinitionSource(typeReaderRegistry, resolver, new String[]{"impala-core", "sample-module4", "sample-module6"});
RootModuleDefinition rootDefinition = source.getModuleDefinition();