de.matthias_burbach.deputy.core.repository
Class ArtifactScanner

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

public class ArtifactScanner
extends java.lang.Object

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

Author:
Matthias Burbach

Constructor Summary
ArtifactScanner()
           
 
Method Summary
static void clearCache()
          Clears the internal cache of already scanned artifacts.
 java.util.List getAllArtifactIds(java.lang.String groupDir)
          Scans a given group directory for all artifact ids of the group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactScanner

public ArtifactScanner()
Method Detail

clearCache

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


getAllArtifactIds

public java.util.List getAllArtifactIds(java.lang.String groupDir)
Scans a given group directory for all artifact ids of the group.
Returns the result from a local cache if possible.

Parameters:
groupDir - The absolute file system path of a group directory to scan for all artifact ids of the group.
Returns:
The list of artifact ids of type String. Is never null.


Copyright © 2005-2007 . All Rights Reserved.