public class DefaultDependencyArtifacts extends ArtifactCollection implements DependencyArtifacts
Modifier and Type | Field and Description |
---|---|
private static java.util.WeakHashMap<ArtifactDescriptor,ArtifactDescriptor> |
ARTIFACT_CACHE
ArtifactDescriptor cache used to correlate equal instances to reduce memory usage
|
private static java.util.WeakHashMap<ArtifactKey,ArtifactKey> |
KEY_CACHE
ArtifactKey cache used to correlate equal instances to reduce memory usage
|
protected java.util.Set<java.lang.Object> |
nonReactorUnits
Set of installable unit in the target platform of the module that do not come from the local
reactor.
|
protected ReactorProject |
project
'this' project, i.e.
|
artifacts, locations
ANY_QUALIFIER
Constructor and Description |
---|
DefaultDependencyArtifacts() |
DefaultDependencyArtifacts(ReactorProject project) |
Modifier and Type | Method and Description |
---|---|
void |
addNonReactorUnits(java.util.Set<?> installableUnits) |
java.util.Set<?> |
getInstallableUnits()
Collection of dependency metadata (p2 installable units).
|
java.util.Set<?> |
getNonReactorUnits()
Set of IInstallableUnits in the resolved project dependencies that come from outside the
local reactor, or
null if the the project dependencies were not resolved from a
p2 target platform. |
protected ArtifactDescriptor |
normalize(ArtifactDescriptor artifact) |
protected ArtifactKey |
normalize(ArtifactKey key) |
addArtifact, addArtifact, addArtifactFile, addReactorArtifact, dump, getArtifact, getArtifact, getArtifact, getArtifacts, getArtifacts, getMavenProject, isEmpty, normalizePluginType, removeAll, toDebugString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArtifact, getArtifact, getArtifact, getArtifacts, getArtifacts, getMavenProject, toDebugString
private static final java.util.WeakHashMap<ArtifactKey,ArtifactKey> KEY_CACHE
private static final java.util.WeakHashMap<ArtifactDescriptor,ArtifactDescriptor> ARTIFACT_CACHE
protected final ReactorProject project
protected final java.util.Set<java.lang.Object> nonReactorUnits
public DefaultDependencyArtifacts()
public DefaultDependencyArtifacts(ReactorProject project)
protected ArtifactDescriptor normalize(ArtifactDescriptor artifact)
normalize
in class ArtifactCollection
protected ArtifactKey normalize(ArtifactKey key)
normalize
in class ArtifactCollection
public java.util.Set<?> getNonReactorUnits()
DependencyArtifacts
null
if the the project dependencies were not resolved from a
p2 target platform.getNonReactorUnits
in interface DependencyArtifacts
public java.util.Set<?> getInstallableUnits()
DependencyArtifacts
The result does not include metadata associated with 'this' project.
getInstallableUnits
in interface DependencyArtifacts
public void addNonReactorUnits(java.util.Set<?> installableUnits)