SearchPathDependencyResolver
.@Deprecated
public class DependencyResolver
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
DependencyResolver.LogicalNameFilter
Deprecated.
|
Constructor and Description |
---|
DependencyResolver()
Deprecated.
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addResolutionRule(ResolutionRule rule)
Deprecated.
Add a resolution rule to be used to resolve logical dependency
|
DependencyResolver |
archive(java.lang.String archive)
Deprecated.
Set the absolute path to the archive
|
DependencyResolver |
collection(java.lang.String collection)
Deprecated.
Set the collection to be used to retrieve the logical dependency
|
DependencyResolver |
disableCache(boolean disableCache)
Deprecated.
Set to not use local cache
|
DependencyResolver |
file(java.lang.String file)
Deprecated.
Set the source file
|
java.lang.String |
getArchive()
Deprecated.
Get the absolute path to the archive
|
java.lang.String |
getCollection()
Deprecated.
Return the collection to be used to retrieve the logical dependency
|
java.lang.String |
getFile()
Deprecated.
Get the source file
|
LogicalFile |
getLogicalFile()
Deprecated.
Return the logical file that is used to resolve
|
IRepositoryClient |
getRepositoryClient()
Deprecated.
Return the RepositoryClient used to retrieve logical file
|
java.util.List<ResolutionRule> |
getResolutionRules()
Deprecated.
Get all resolution rules to be used to resolve logical dependency
|
IDependencyScanner |
getScanner()
Deprecated.
Return the scanner to be used to scan for logical dependencies
|
java.lang.String |
getSourceDir()
Deprecated.
Set the directory where the source file can be located
|
boolean |
isDisableCache()
Deprecated.
Return
true if no local cache is used, false
otherwise |
DependencyResolver |
logicalFile(LogicalFile logicalFile)
Deprecated.
Set the logical file
|
DependencyResolver |
repositoryClient(IRepositoryClient repositoryClient)
Deprecated.
Set the repository client to be used to retrieve logical file
|
java.util.List<PhysicalDependency> |
resolve()
Deprecated.
Resolve all of a source file's logical dependencies to physical dependencies
|
java.util.List<PhysicalDependency> |
resolveDependency(java.lang.String lname)
Deprecated.
Resolve a source file's logical dependencies to physical dependencies for a specific dependency lname
|
DependencyResolver |
rule(ResolutionRule rule)
Deprecated.
Add a resolution rule to be used to resolve logical dependency
|
DependencyResolver |
scanner(IDependencyScanner scanner)
Deprecated.
Set the dependency scanner to be used to scan for logical dependencies
|
void |
setArchive(java.lang.String archive)
Deprecated.
Set the absolute path to the archive
|
void |
setCollection(java.lang.String collection)
Deprecated.
Set the collection to be used to retrieve the logical dependency
|
void |
setDisableCache(boolean disableCache)
Deprecated.
Set to not use local cache
|
void |
setFile(java.lang.String file)
Deprecated.
Set the source file
|
void |
setLogicalFile(LogicalFile logicalFile)
Deprecated.
Set the logical file
|
void |
setRepositoryClient(IRepositoryClient repositoryClient)
Deprecated.
Set the repository client to be used to retrieve logical file
|
void |
setResolutionRules(java.util.List<ResolutionRule> rules)
Deprecated.
Set the resolution rules used to resolve logical dependency to physical
dependencies
|
void |
setScanner(IDependencyScanner scanner)
Deprecated.
Set the dependency scanner to be used to scan for logical dependencies
|
void |
setSourceDir(java.lang.String sourceDir)
Deprecated.
Set the directory where the source file can be located
|
DependencyResolver |
sourceDir(java.lang.String sourceDir)
Deprecated.
Set the directory where the source file can be located
|
public java.util.List<PhysicalDependency> resolve() throws BuildException, java.io.IOException
BuildException
- an exception occurredjava.io.IOException
- an exception occurredpublic java.util.List<PhysicalDependency> resolveDependency(java.lang.String lname) throws BuildException, java.io.IOException
lname
- The dependency lname to resolveBuildException
- an exception occurredjava.io.IOException
- an exception occurredpublic LogicalFile getLogicalFile() throws BuildException
BuildException
- an exception occurredpublic void setLogicalFile(LogicalFile logicalFile)
logicalFile
- the logical filepublic DependencyResolver logicalFile(LogicalFile logicalFile)
logicalFile
- the logical filepublic IRepositoryClient getRepositoryClient()
public void setRepositoryClient(IRepositoryClient repositoryClient)
repositoryClient
- the repository clientpublic IDependencyScanner getScanner()
public void setScanner(IDependencyScanner scanner)
scanner
- the dependency scannerpublic java.lang.String getCollection()
public void setCollection(java.lang.String collection)
collection
- the name of the collectionpublic java.lang.String getSourceDir()
public void setSourceDir(java.lang.String sourceDir)
sourceDir
- the source directorypublic java.lang.String getFile()
public void setFile(java.lang.String file)
file
- the source filepublic java.lang.String getArchive()
public void setArchive(java.lang.String archive)
archive
- absolute path to archivepublic void setResolutionRules(java.util.List<ResolutionRule> rules)
rules
- a list of resolution rulespublic void addResolutionRule(ResolutionRule rule)
rule
- the resolution rulepublic java.util.List<ResolutionRule> getResolutionRules()
public boolean isDisableCache()
true
if no local cache is used, false
otherwisepublic void setDisableCache(boolean disableCache)
disableCache
- whether to disable local cachepublic DependencyResolver repositoryClient(IRepositoryClient repositoryClient)
repositoryClient
- the repository clientpublic DependencyResolver scanner(IDependencyScanner scanner)
scanner
- the dependency scannerpublic DependencyResolver collection(java.lang.String collection)
collection
- the name of the collectionpublic DependencyResolver sourceDir(java.lang.String sourceDir)
sourceDir
- the source directorypublic DependencyResolver file(java.lang.String file)
file
- the source filepublic DependencyResolver archive(java.lang.String archive)
archive
- absolute path to archivepublic DependencyResolver rule(ResolutionRule rule)
rule
- the resolution rulepublic DependencyResolver disableCache(boolean disableCache)
disableCache
- whether to disable local cache<IBM Copyright © 2018 IBM Corp. All Rights Reserved.