Package org.lilyproject.runtime.classloading

Examples of org.lilyproject.runtime.classloading.ClasspathEntry


        return true;
    }

    private void makeShared(ArtifactHolder holder, String version) {
        ArtifactRef ref = holder.getArtifactRef(version);
        sharedArtifacts.add(new ClasspathEntry(ref, null, holder.getModuleSource()));

        for (ArtifactUser user : holder.required) {
            user.module.getClassLoadingConfig().enableSharing(ref);
        }
        for (ArtifactUser user : holder.allowed) {
View Full Code Here


                    classLoadingConfig = XmlClassLoaderBuilder.build(document.getDocumentElement(), moduleSource, runtime.getArtifactRepository(), versionManager);
                } finally {
                    IOUtils.closeQuietly(is);
                }
            } else {
                ClasspathEntry selfEntry = new ClasspathEntry(new FileArtifactRef(moduleSource.getClassPathEntry()), ArtifactSharingMode.PROHIBITED, moduleSource);
                classLoadingConfig = new ClassLoadingConfigImpl(Collections.singletonList(selfEntry), runtime.getArtifactRepository());
            }

            return new ModuleConfigImpl(moduleDefinition, classLoadingConfig, moduleSource);
View Full Code Here

TOP

Related Classes of org.lilyproject.runtime.classloading.ClasspathEntry

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.