Package digilib.io

Class DocuDirectoryFactory


  • public class DocuDirectoryFactory
    extends Object
    Static factory for DocuDirectory implementations.
    Author:
    casties
    • Field Detail

      • logger

        protected static org.slf4j.Logger logger
        Log4J logger
      • docuDirClass

        protected static Class<DocuDirectory> docuDirClass
        DocuDirectory implementation class
    • Constructor Detail

      • DocuDirectoryFactory

        public DocuDirectoryFactory()
    • Method Detail

      • getInstance

        public static DocuDirectory getInstance()
        Returns a unconfigured DocuDirectory instance.
        Returns:
        the DocuDirectory
      • getDocuDirectoryInstance

        public static DocuDirectory getDocuDirectoryInstance​(String path,
                                                             FileOps.FileClass fileClass)
        Returns a DocuDirectory instance with the given path and FileClass.
        Parameters:
        path - the path
        fileClass - the FileClass
        Returns:
        the DocuDirectory
      • getDocuDirectoryInstance

        public static DocuDirectory getDocuDirectoryInstance​(String path,
                                                             DocuDirCache cache)
        Returns a DocuDirectory instance with the given path and DocuDirCache.
        Parameters:
        path - the path
        cache - the DocuDirCache
        Returns:
        the DocuDirectory
      • setDocuDirectoryClass

        public static void setDocuDirectoryClass​(Class<DocuDirectory> dirClass)
        Parameters:
        dirClass - the DocuDirectory class to set
      • setDigilibConfig

        public static void setDigilibConfig​(DigilibConfiguration dlConfig)
        Parameters:
        dlConfig - the DigilibConfiguration