blob: 48af70f20d32f88ca1ac125a6a15753cc6fcaf23 [file] [log] [blame]
package org.eclipse.aether.internal.impl.collect;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Future;
import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.graph.Dependency;
import org.eclipse.aether.resolution.ArtifactDescriptorResult;
import org.eclipse.aether.resolution.VersionRangeResult;
import org.eclipse.aether.version.Version;
class DependencyContext
{
Dependency origDependency;
DefaultDependencyCollectionContext context;
List<Artifact> relocations;
boolean disableVersionManagement;
Args args;
PremanagedDependency preManaged;
boolean traverse;
VersionRangeResult rangeResult;
Version version;
Artifact originalArtifact;
Dependency managedDependency;
Future<ArtifactDescriptorResult> futureDescriptorResult;
ArtifactDescriptorResult descriptorResult;
DependencyContext()
{
// empty
}
DependencyContext( DefaultDependencyCollectionContext context, Dependency dependency )
{
this.context = context;
this.origDependency = dependency;
this.relocations = Collections.emptyList();
this.disableVersionManagement = false;
this.args = context.getArgs();
}
}