org.sonatype.aether.metadata
Interface MergeableMetadata

All Superinterfaces:
Metadata

public interface MergeableMetadata
extends Metadata

A piece of metadata that needs to be merged with any current metadata before installation/deployment.

Author:
Benjamin Bentmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.aether.metadata.Metadata
Metadata.Nature
 
Method Summary
 boolean isMerged()
          Indicates whether this metadata has been merged.
 void merge(File current, File result)
          Merges this metadata into the current metadata (if any).
 
Methods inherited from interface org.sonatype.aether.metadata.Metadata
getArtifactId, getFile, getGroupId, getNature, getType, getVersion, setFile
 

Method Detail

merge

void merge(File current,
           File result)
           throws RepositoryException
Merges this metadata into the current metadata (if any). Note that this method will be invoked regardless whether metadata currently exists or not.

Parameters:
current - The path to the current metadata file, may not exist but must not be null.
result - The path to the result file where the merged metadata should be stored, must not be null.
Throws:
RepositoryException - If the metadata could not be merged.

isMerged

boolean isMerged()
Indicates whether this metadata has been merged.

Returns:
true if the metadata has been merged, false otherwise.


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.