Class ConfigFileFinder


  • public abstract class ConfigFileFinder
    extends java.lang.Object
    Used to find configuration files as resources from the jar file or from some external location. The path supplied to readFiles(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
      int getFileCount()  
      boolean readFile​(java.io.Reader reader, java.lang.String readFrom, java.lang.String path, java.lang.String baseUrl, org.apache.commons.logging.Log log)  
      boolean readFiles​(java.lang.String path, org.apache.commons.logging.Log log)  
      protected abstract void readJson​(com.fasterxml.jackson.databind.JsonNode jsonNode, java.lang.String readFromMessage, java.lang.String baseUrl)  
      void setFileCount​(int fileCount)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigFileFinder

        public ConfigFileFinder​(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper)
    • 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