Package org.alfresco.util
Class ConfigFileFinder
- java.lang.Object
-
- org.alfresco.util.ConfigFileFinder
-
public abstract class ConfigFileFinder extends java.lang.ObjectUsed to find configuration files as resources from the jar file or from some external location. The path supplied toreadFiles(String, Log)may be a directory name. Normally used by ConfigScheduler.- Author:
- adavis
-
-
Constructor Summary
Constructors Constructor Description ConfigFileFinder(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetFileCount()booleanreadFile(java.io.Reader reader, java.lang.String readFrom, java.lang.String path, java.lang.String baseUrl, org.apache.commons.logging.Log log)booleanreadFiles(java.lang.String path, org.apache.commons.logging.Log log)protected abstract voidreadJson(com.fasterxml.jackson.databind.JsonNode jsonNode, java.lang.String readFromMessage, java.lang.String baseUrl)voidsetFileCount(int fileCount)
-
-
-
Method Detail
-
getFileCount
public int getFileCount()
-
setFileCount
public void setFileCount(int fileCount)
-
readFiles
public boolean readFiles(java.lang.String path, org.apache.commons.logging.Log log)
-
readFile
public boolean readFile(java.io.Reader reader, java.lang.String readFrom, java.lang.String path, java.lang.String baseUrl, org.apache.commons.logging.Log log)
-
readJson
protected abstract void readJson(com.fasterxml.jackson.databind.JsonNode jsonNode, java.lang.String readFromMessage, java.lang.String baseUrl) throws java.io.IOException- Throws:
java.io.IOException
-
-