com.ibm.dbb.dependency

Class DependencyScannerRegistry

  • java.lang.Object
    • com.ibm.dbb.dependency.DependencyScannerRegistry
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void addScanner(java.lang.String fileExtension, IDependencyScanner scanner)
      Adds an instance of IDependencyScanner to the registry
      static IDependencyScanner getScanner(java.lang.String filepath)
      Returns the instance of IDependencyScanner registered for this file's file extension or the default DBB DependencyScanner if no scanner is registered to the file extension.
      static void removeScanner(java.lang.String fileExtension)
      Removes a scanner from the registry
      static void staticReset()
      Resets the static variables created by this class.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getScanner

        public static IDependencyScanner getScanner(java.lang.String filepath)
        Returns the instance of IDependencyScanner registered for this file's file extension or the default DBB DependencyScanner if no scanner is registered to the file extension. If no '.' is found in the filepath, then the string is assumed to be a file extension.
        Parameters:
        filepath - - the path of the file that needs to be scanned or a file extension used to register a scanner
      • addScanner

        public static void addScanner(java.lang.String fileExtension,
                                      IDependencyScanner scanner)
        Adds an instance of IDependencyScanner to the registry
        Parameters:
        fileExtension - - the file extension used to register the scanner. Example 'cob'
        scanner - - An instance of IDependencyScanner
      • removeScanner

        public static void removeScanner(java.lang.String fileExtension)
        Removes a scanner from the registry
        Parameters:
        fileExtension - - the file extension used to register the scanner. Example 'cob'
      • staticReset

        public static void staticReset()
        Resets the static variables created by this class. For use with the DBB Build Daemon

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