org.sonatype.aether.test.util
Class IniArtifactDescriptorReader

java.lang.Object
  extended by org.sonatype.aether.test.util.IniArtifactDescriptorReader

public class IniArtifactDescriptorReader
extends java.lang.Object

Uses a IniArtifactDataReader to parse an artifact description.

Note: May not directly implement ArtifactDescriptorReader from aether-impl because of circular dependencies, and has to be wrapped for use in test classes.

Author:
Benjamin Hanzelmann

Constructor Summary
IniArtifactDescriptorReader(java.lang.String prefix)
          Use the given prefix to load the artifact descriptions.
 
Method Summary
 ArtifactDescriptorResult readArtifactDescriptor(RepositorySystemSession session, ArtifactDescriptorRequest request)
          Parses the resource $prefix/gid_aid_ext_ver.ini from the request artifact as an artifact description and wraps it into an ArtifactDescriptorResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IniArtifactDescriptorReader

public IniArtifactDescriptorReader(java.lang.String prefix)
Use the given prefix to load the artifact descriptions.

Method Detail

readArtifactDescriptor

public ArtifactDescriptorResult readArtifactDescriptor(RepositorySystemSession session,
                                                       ArtifactDescriptorRequest request)
                                                throws ArtifactDescriptorException
Parses the resource $prefix/gid_aid_ext_ver.ini from the request artifact as an artifact description and wraps it into an ArtifactDescriptorResult.

Throws:
ArtifactDescriptorException


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