All Downloads are FREE. Search and download functionalities are using the official Maven repository.

migrate.interfaces.MigrateClassloader Maven / Gradle / Ivy

The newest version!
package migrate.interfaces;

public class MigrateClassloader extends ClassLoader {
    private final ClassLoader parent;

    public MigrateClassloader(ClassLoader parent) {
        super(null);
        this.parent = parent;
    }

    @Override
    protected Class findClass(String name) throws ClassNotFoundException {
        if (name.startsWith("migrate.interfaces")) {
            return parent.loadClass(name);
        } else {
            throw new ClassNotFoundException(name);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy