de.matthias_burbach.deputy.core.repository
Class VersionScanner

java.lang.Object
  extended byde.matthias_burbach.deputy.core.repository.VersionScanner

public class VersionScanner
extends java.lang.Object

Scans a given path and artifact id for all POMs of this artifact and returns all versions of that artifact available there.

Author:
Matthias Burbach

Constructor Summary
VersionScanner()
           
 
Method Summary
static void clearCache()
          Clears the internal cache of already scanned directories.
 java.util.List getAllVersions(java.lang.String path, java.lang.String artifactId)
          Scans a given path and artifact id for all POMs of this artifact and returns all versions of that artifact available there.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionScanner

public VersionScanner()
Method Detail

clearCache

public static void clearCache()
Clears the internal cache of already scanned directories. The cache is shared by all instances of this class.


getAllVersions

public java.util.List getAllVersions(java.lang.String path,
                                     java.lang.String artifactId)
Scans a given path and artifact id for all POMs of this artifact and returns all versions of that artifact available there.
Returns the result from a local cache if possible.

Parameters:
path - The absolute file system path of a directory to scan.
artifactId - The id of the artifact to scan versions for.
Returns:
The list of versions of type String. Is never null.


Copyright © 2005-2007 . All Rights Reserved.