|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResolutionPolicy
Base interface for dependency resolution policies.
Method Summary | |
---|---|
Version |
applyPolicy(Version sourceVersion,
Resource targetResource,
Snapshot onSnapshot)
Applies a policy and returns a collection of zero or more result versions. |
java.lang.String |
getParameter(java.lang.String paramName)
Returns the value of the specified parameter. |
java.util.Map |
getParams()
Returns the map of name/value pairs representing the specific parameter values the policy was created with. |
java.lang.String |
getPolicyTypeName()
Returns the repository-implementation-unique name for the policy, i.e., the class name. |
void |
initialize(java.util.Map parameters)
Initialize the new policy instance with a set of parameters. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets a parameter of the resolution policy instance. |
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 |
Method Detail |
---|
Version applyPolicy(Version sourceVersion, Resource targetResource, Snapshot onSnapshot) throws RepositoryException
sourceVersion
- The version the dependency is fromtargetResource
- The resource the depencency targetsonSnapshot
- The snapshot that establishes the visibility context within which
the policy is resolved.
java.lang.Throwable
RepositoryException
void initialize(java.util.Map parameters)
parameters
- java.lang.String getPolicyTypeName()
java.util.Map getParams()
void setParameter(java.lang.String name, java.lang.String value)
name
- value
- java.lang.String getParameter(java.lang.String paramName)
paramName
- Name of the parameter to get;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |