org.apache.archiva.policies
Class ReleasesPolicy

java.lang.Object
  extended by org.apache.archiva.policies.AbstractUpdatePolicy
      extended by org.apache.archiva.policies.ReleasesPolicy
All Implemented Interfaces:
DownloadPolicy, Policy, PreDownloadPolicy

@Service(value="preDownloadPolicy#releases")
public class ReleasesPolicy
extends AbstractUpdatePolicy
implements PreDownloadPolicy

PreDownloadPolicy to apply for released versions.


Field Summary
 
Fields inherited from class org.apache.archiva.policies.AbstractUpdatePolicy
ALWAYS, DAILY, HOURLY, NEVER, ONCE
 
Constructor Summary
ReleasesPolicy()
           
 
Method Summary
 String getDefaultOption()
          Defaults to AbstractUpdatePolicy.HOURLY
 String getId()
          Get the id for this policy.
 String getName()
          Get the display name for this policy.
protected  String getUpdateMode()
           
protected  boolean isSnapshotPolicy()
           
 
Methods inherited from class org.apache.archiva.policies.AbstractUpdatePolicy
applyPolicy, getOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.archiva.policies.DownloadPolicy
applyPolicy
 
Methods inherited from interface org.apache.archiva.policies.Policy
getOptions
 

Constructor Detail

ReleasesPolicy

public ReleasesPolicy()
Method Detail

getDefaultOption

public String getDefaultOption()
Defaults to AbstractUpdatePolicy.HOURLY

Specified by:
getDefaultOption in interface Policy
Returns:
the default policy for this policy.

isSnapshotPolicy

protected boolean isSnapshotPolicy()
Specified by:
isSnapshotPolicy in class AbstractUpdatePolicy

getUpdateMode

protected String getUpdateMode()
Specified by:
getUpdateMode in class AbstractUpdatePolicy

getId

public String getId()
Description copied from interface: Policy
Get the id for this policy.

Specified by:
getId in interface Policy
Returns:
the id for this policy.

getName

public String getName()
Description copied from interface: Policy
Get the display name for this policy.

Specified by:
getName in interface Policy
Returns:
the name for this policy


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.