Package digilib.io
Class DocuDirectoryFactory
- java.lang.Object
-
- digilib.io.DocuDirectoryFactory
-
public class DocuDirectoryFactory extends Object
Static factory for DocuDirectory implementations.- Author:
- casties
-
-
Field Summary
Fields Modifier and Type Field Description protected static DigilibConfiguration
dlConfig
digilib config instanceprotected static Class<DocuDirectory>
docuDirClass
DocuDirectory implementation classprotected static org.slf4j.Logger
logger
Log4J logger
-
Constructor Summary
Constructors Constructor Description DocuDirectoryFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocuDirectory
getDocuDirectoryInstance(String path, DocuDirCache cache)
Returns a DocuDirectory instance with the given path and DocuDirCache.static DocuDirectory
getDocuDirectoryInstance(String path, FileOps.FileClass fileClass)
Returns a DocuDirectory instance with the given path and FileClass.static DocuDirectory
getInstance()
Returns a unconfigured DocuDirectory instance.static void
setDigilibConfig(DigilibConfiguration dlConfig)
static void
setDocuDirectoryClass(Class<DocuDirectory> dirClass)
-
-
-
Field Detail
-
logger
protected static org.slf4j.Logger logger
Log4J logger
-
dlConfig
protected static DigilibConfiguration dlConfig
digilib config instance
-
docuDirClass
protected static Class<DocuDirectory> docuDirClass
DocuDirectory implementation class
-
-
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 pathfileClass
- 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 pathcache
- 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
-
-