fr.jayasoft.ivy
Interface LatestStrategy


public interface LatestStrategy


Method Summary
 ArtifactInfo findLatest(ArtifactInfo[] infos, java.util.Date date)
          Finds the latest artifact among the given artifacts info.
 java.lang.String getName()
           
 

Method Detail

findLatest

public ArtifactInfo findLatest(ArtifactInfo[] infos,
                               java.util.Date date)
Finds the latest artifact among the given artifacts info. The definition of 'latest' depends on the strategy itself. Given artifacts info are all good candidate. If the given date is not null, then found artifact should not be later than this date.

Parameters:
infos -
date -
Returns:
the latest artifact among the given ones.

getName

public java.lang.String getName()