Package org.lilyproject.runtime.repository

Examples of org.lilyproject.runtime.repository.ArtifactRef


                    if (version == null) {
                        String message = String.format("Version for artifact %s:%s (%s) not specified, and no preference found in runtime configuration.", groupId, artifactId, classifier);
                        throw new RuntimeException(message);
                    }

                    ArtifactRef artifactRef = new RepoArtifactRef(groupId, artifactId, classifier, version);

                    // Check for double artifacts
                    for (ClasspathEntry entry : classpath) {
                        if (entry.getArtifactRef().equals(artifactRef)) {
                            log.error("Classloader specification contains second reference to same artifact, will skip second reference. Artifact = " + artifactRef);
                            continue classpath;
                        } else if (entry.getArtifactRef().getId().equals(artifactRef.getId())) {
                            log.warn("Classloader specification contains second reference to same artifact but different version. Artifact = " + artifactRef);
                        }
                    }

                    // Creating SharingMode
View Full Code Here


        }
        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);
        }
View Full Code Here

     */
    private void buildInverseIndex() {
        for (ModuleConfig moduleConf : moduleConfigs) {
            List<ClasspathEntry> classpathEntries = moduleConf.getClassLoadingConfig().getEntries();
            for (ClasspathEntry entry : classpathEntries) {
                ArtifactRef artifact = entry.getArtifactRef();
                ArtifactHolder holder = getArtifactHolder(artifact);
                holder.add(entry.getSharingMode(), artifact.getVersion(), moduleConf, entry.getModuleSource());
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.lilyproject.runtime.repository.ArtifactRef

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.