Package org.fedoraproject.xmvn.resolver
Class ResolutionRequest
java.lang.Object
org.fedoraproject.xmvn.resolver.ResolutionRequest
Specifies parameters of artifact resolution.
- Author:
- Mikolaj Izdebski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get artifact which resolution is requested.int
hashCode()
boolean
Determine whether resolved artifact file should be persistent or not.boolean
Determine whether information about artifact provider should be included in resolution result.void
setArtifact
(Artifact artifact) Set artifact which resolution is requested.void
setPersistentFileNeeded
(boolean isPersistentFileNeeded) Set whether resolved artifact file should be persistent or not.void
setProviderNeeded
(boolean isProviderNeeded) Set whether information about artifact provider should be included in resolution result.toString()
-
Constructor Details
-
ResolutionRequest
public ResolutionRequest() -
ResolutionRequest
-
-
Method Details
-
getArtifact
Get artifact which resolution is requested.- Returns:
- artifact which resolution is requested
-
setArtifact
Set artifact which resolution is requested.- Parameters:
artifact
- artifact which resolution is requested
-
isProviderNeeded
public boolean isProviderNeeded()Determine whether information about artifact provider should be included in resolution result.Artifact provider is name of system package providing requested artifact.
- Returns:
- whether information about artifact provider should be included in resolution result
-
setProviderNeeded
public void setProviderNeeded(boolean isProviderNeeded) Set whether information about artifact provider should be included in resolution result.Artifact provider is name of system package providing requested artifact.
- Parameters:
isProviderNeeded
- whether information about artifact provider should be included in resolution result
-
isPersistentFileNeeded
public boolean isPersistentFileNeeded()Determine whether resolved artifact file should be persistent or not.Non-persistent files may be removed during JVM shutdown, while persistent files are not cleaned up during JVM shutdown.
- Returns:
- whether resolved artifact file should be persistent
-
setPersistentFileNeeded
public void setPersistentFileNeeded(boolean isPersistentFileNeeded) Set whether resolved artifact file should be persistent or not.Non-persistent files may be removed during JVM shutdown, while persistent files are not cleaned up during JVM shutdown.
- Parameters:
isPersistentFileNeeded
-
-
hashCode
public int hashCode() -
equals
-
toString
-