org.xiruss.xirussrepository.client
Class SpecificVersionResolutionPolicyProxy

java.lang.Object
  extended by org.xiruss.xirussrepository.client.RepositoryObjectProxy
      extended by org.xiruss.xirussrepository.client.ResolutionPolicyProxy
          extended by org.xiruss.xirussrepository.client.SpecificVersionResolutionPolicyProxy
All Implemented Interfaces:
SpecificVersionResolutionPolicy, RepositoryObject, ResolutionPolicy

public class SpecificVersionResolutionPolicyProxy
extends ResolutionPolicyProxy
implements SpecificVersionResolutionPolicy


Field Summary
 
Fields inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy
cHelper, logger, objectTypeCode, pathToMe
 
Fields inherited from interface org.xiruss.repository.api.SpecificVersionResolutionPolicy
VERSIONID_PARAM
 
Constructor Summary
SpecificVersionResolutionPolicyProxy()
           
 
Method Summary
 Version applyPolicy(Version sourceVersion, Resource targetResource, Snapshot onSnapshot)
          This is the base resolution behavior.
 void setTargetVersion(Version targetVer)
          Sets the specific version this resolution policy should resolve to.
 
Methods inherited from class org.xiruss.xirussrepository.client.ResolutionPolicyProxy
getParameter, getParams, getPolicyTypeName, initialize, initialize, setParameter
 
Methods inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy
accept, compareTo, doPost, doStringReturnPost, equals, getBooleanValue, getId, getName, getOriginalClassName, getPathToMe, getProperties, getProperty, getPropertyNames, getRepository, getStringReturnValue, getStringSetReturnValue, getType, hasProperty, initialize, isNull, loadRepositoryObjectData, setId, setName, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xiruss.snapcm.api.ResolutionPolicy
getParameter, getParams, getPolicyTypeName, initialize, setParameter
 
Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString
 

Constructor Detail

SpecificVersionResolutionPolicyProxy

public SpecificVersionResolutionPolicyProxy()
Method Detail

setTargetVersion

public void setTargetVersion(Version targetVer)
Description copied from interface: SpecificVersionResolutionPolicy
Sets the specific version this resolution policy should resolve to.

Specified by:
setTargetVersion in interface SpecificVersionResolutionPolicy

applyPolicy

public Version applyPolicy(Version sourceVersion,
                           Resource targetResource,
                           Snapshot onSnapshot)
                    throws RepositoryException
This is the base resolution behavior. Subclasses can either take this result and futher refine it or completely re-implement this method. This is "onSnapshot" policy resolution.

Specified by:
applyPolicy in interface ResolutionPolicy
Overrides:
applyPolicy in class ResolutionPolicyProxy
Parameters:
sourceVersion - The version the dependency is from
targetResource - The resource the depencency targets
onSnapshot - The snapshot that establishes the visibility context within which the policy is resolved.
Throws:
RepositoryException