Package org.gradle.internal.classloader

Examples of org.gradle.internal.classloader.MultiParentClassLoader


        List<ClassLoader> loaders = new ArrayList<ClassLoader>(classPaths.size());
        for (ClassPath classPath : classPaths) {
            loaders.add(loader(classPath));
        }
        return new CachingClassLoader(new MultiParentClassLoader(loaders));
    }
View Full Code Here


        List<ClassLoader> loaders = new ArrayList<ClassLoader>(classPaths.size() + 1);
        loaders.add(additional);
        for (ClassPath classPath : classPaths) {
            loaders.add(loader(classPath));
        }
        return new CachingClassLoader(new MultiParentClassLoader(loaders));
    }
View Full Code Here

        List<ClassLoader> loaders = new ArrayList<ClassLoader>(classPaths.size() + 1);
        loaders.add(additional);
        for (ClassPath classPath : classPaths) {
            loaders.add(loader(classPath));
        }
        return new MultiParentClassLoader(loaders);
    }
View Full Code Here

    LoggingManagerInternal createLoggingManager() {
        return LoggingServiceRegistry.newProcessLogging().newInstance(LoggingManagerInternal.class);
    }

    MutableURLClassLoader createImplementationClassLoader(ClassLoader system, ClassLoader application) {
        return new MutableURLClassLoader(new CachingClassLoader(new MultiParentClassLoader(application, system)));
    }
View Full Code Here

        ClassPath implementationClasspath = distribution.getToolingImplementationClasspath(progressLoggerFactory, userHomeDir, cancellationToken);
        LOGGER.debug("Using tooling provider classpath: {}", implementationClasspath);
        // On IBM JVM 5, ClassLoader.getResources() uses a combination of findResources() and getParent() and traverses the hierarchy rather than just calling getResources()
        // Wrap our real classloader in one that hides the parent.
        // TODO - move this into FilteringClassLoader
        MultiParentClassLoader parentObfuscatingClassLoader = new MultiParentClassLoader(classLoader);
        FilteringClassLoader filteringClassLoader = new FilteringClassLoader(parentObfuscatingClassLoader);
        filteringClassLoader.allowPackage("org.gradle.tooling.internal.protocol");
        return new MutableURLClassLoader(filteringClassLoader, implementationClasspath.getAsURLArray());
    }
View Full Code Here

TOP

Related Classes of org.gradle.internal.classloader.MultiParentClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.