Package org.alfresco.util
Class ConfigFileFinder
- java.lang.Object
-
- org.alfresco.util.ConfigFileFinder
-
public abstract class ConfigFileFinder extends Object
Used 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(Reader reader, String readFrom, String path, String baseUrl, org.apache.commons.logging.Log log)booleanreadFiles(String path, org.apache.commons.logging.Log log)protected abstract voidreadJson(com.fasterxml.jackson.databind.JsonNode jsonNode, String readFromMessage, String baseUrl)voidsetFileCount(int fileCount)
-
-
-
Method Detail
-
getFileCount
public int getFileCount()
-
setFileCount
public void setFileCount(int fileCount)
-
readFiles
public boolean readFiles(String path, org.apache.commons.logging.Log log)
-
readFile
public boolean readFile(Reader reader, String readFrom, String path, String baseUrl, org.apache.commons.logging.Log log)
-
readJson
protected abstract void readJson(com.fasterxml.jackson.databind.JsonNode jsonNode, String readFromMessage, String baseUrl) throws IOException- Throws:
IOException
-
-