com.ibm.dbb.dependency

Class DependencyResolver

  • java.lang.Object
    • com.ibm.dbb.dependency.DependencyResolver

  • Deprecated. 
    - This class is replaced by SearchPathDependencyResolver.

    @Deprecated
    public class DependencyResolver
    extends java.lang.Object
    The DependenceyResolver class is used to resolve logical dependencies gathered by the dependency scanner into physical dependencies that can be located on the local file system.
    • Constructor Detail

      • DependencyResolver

        public DependencyResolver()
        Deprecated. 
        Default constructor
    • Method Detail

      • resolve

        public java.util.List<PhysicalDependency> resolve()
                                                   throws BuildException,
                                                          java.io.IOException
        Deprecated. 
        Resolve all of a source file's logical dependencies to physical dependencies
        Returns:
        the list of physical dependencies
        Throws:
        BuildException - an exception occurred
        java.io.IOException - an exception occurred
      • resolveDependency

        public java.util.List<PhysicalDependency> resolveDependency(java.lang.String lname)
                                                             throws BuildException,
                                                                    java.io.IOException
        Deprecated. 
        Resolve a source file's logical dependencies to physical dependencies for a specific dependency lname
        Parameters:
        lname - The dependency lname to resolve
        Returns:
        the list of physical dependencies
        Throws:
        BuildException - an exception occurred
        java.io.IOException - an exception occurred
      • getLogicalFile

        public LogicalFile getLogicalFile()
                                   throws BuildException
        Deprecated. 
        Return the logical file that is used to resolve
        Returns:
        the logical file
        Throws:
        BuildException - an exception occurred
      • setLogicalFile

        public void setLogicalFile(LogicalFile logicalFile)
        Deprecated. 
        Set the logical file
        Parameters:
        logicalFile - the logical file
      • logicalFile

        public DependencyResolver logicalFile(LogicalFile logicalFile)
        Deprecated. 
        Set the logical file
        Parameters:
        logicalFile - the logical file
        Returns:
        this DependencyResolver
      • getRepositoryClient

        public IRepositoryClient getRepositoryClient()
        Deprecated. 
        Return the RepositoryClient used to retrieve logical file
        Returns:
        the repository client
      • setRepositoryClient

        public void setRepositoryClient(IRepositoryClient repositoryClient)
        Deprecated. 
        Set the repository client to be used to retrieve logical file
        Parameters:
        repositoryClient - the repository client
      • getScanner

        public IDependencyScanner getScanner()
        Deprecated. 
        Return the scanner to be used to scan for logical dependencies
        Returns:
        the dependency scanner
      • setScanner

        public void setScanner(IDependencyScanner scanner)
        Deprecated. 
        Set the dependency scanner to be used to scan for logical dependencies
        Parameters:
        scanner - the dependency scanner
      • getCollection

        public java.lang.String getCollection()
        Deprecated. 
        Return the collection to be used to retrieve the logical dependency
        Returns:
        the name of the collection
      • setCollection

        public void setCollection(java.lang.String collection)
        Deprecated. 
        Set the collection to be used to retrieve the logical dependency
        Parameters:
        collection - the name of the collection
      • getSourceDir

        public java.lang.String getSourceDir()
        Deprecated. 
        Set the directory where the source file can be located
        Returns:
        the source directory
      • setSourceDir

        public void setSourceDir(java.lang.String sourceDir)
        Deprecated. 
        Set the directory where the source file can be located
        Parameters:
        sourceDir - the source directory
      • getFile

        public java.lang.String getFile()
        Deprecated. 
        Get the source file
        Returns:
        the source file
      • setFile

        public void setFile(java.lang.String file)
        Deprecated. 
        Set the source file
        Parameters:
        file - the source file
      • getArchive

        public java.lang.String getArchive()
        Deprecated. 
        Get the absolute path to the archive
        Returns:
        absolute path to archive
      • setArchive

        public void setArchive(java.lang.String archive)
        Deprecated. 
        Set the absolute path to the archive
        Parameters:
        archive - absolute path to archive
      • setResolutionRules

        public void setResolutionRules(java.util.List<ResolutionRule> rules)
        Deprecated. 
        Set the resolution rules used to resolve logical dependency to physical dependencies
        Parameters:
        rules - a list of resolution rules
      • addResolutionRule

        public void addResolutionRule(ResolutionRule rule)
        Deprecated. 
        Add a resolution rule to be used to resolve logical dependency
        Parameters:
        rule - the resolution rule
      • getResolutionRules

        public java.util.List<ResolutionRule> getResolutionRules()
        Deprecated. 
        Get all resolution rules to be used to resolve logical dependency
        Returns:
        the list of resolution rules
      • isDisableCache

        public boolean isDisableCache()
        Deprecated. 
        Return true if no local cache is used, false otherwise
        Returns:
        whether local cache is disable
      • setDisableCache

        public void setDisableCache(boolean disableCache)
        Deprecated. 
        Set to not use local cache
        Parameters:
        disableCache - whether to disable local cache
      • repositoryClient

        public DependencyResolver repositoryClient(IRepositoryClient repositoryClient)
        Deprecated. 
        Set the repository client to be used to retrieve logical file
        Parameters:
        repositoryClient - the repository client
        Returns:
        this instance
      • scanner

        public DependencyResolver scanner(IDependencyScanner scanner)
        Deprecated. 
        Set the dependency scanner to be used to scan for logical dependencies
        Parameters:
        scanner - the dependency scanner
        Returns:
        this instance
      • collection

        public DependencyResolver collection(java.lang.String collection)
        Deprecated. 
        Set the collection to be used to retrieve the logical dependency
        Parameters:
        collection - the name of the collection
        Returns:
        this instance
      • sourceDir

        public DependencyResolver sourceDir(java.lang.String sourceDir)
        Deprecated. 
        Set the directory where the source file can be located
        Parameters:
        sourceDir - the source directory
        Returns:
        this instance
      • file

        public DependencyResolver file(java.lang.String file)
        Deprecated. 
        Set the source file
        Parameters:
        file - the source file
        Returns:
        this instance
      • archive

        public DependencyResolver archive(java.lang.String archive)
        Deprecated. 
        Set the absolute path to the archive
        Parameters:
        archive - absolute path to archive
        Returns:
        this instance
      • rule

        public DependencyResolver rule(ResolutionRule rule)
        Deprecated. 
        Add a resolution rule to be used to resolve logical dependency
        Parameters:
        rule - the resolution rule
        Returns:
        this instance
      • disableCache

        public DependencyResolver disableCache(boolean disableCache)
        Deprecated. 
        Set to not use local cache
        Parameters:
        disableCache - whether to disable local cache
        Returns:
        this instance

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.