Class FileFactoryConfiguration

    • Constructor Detail

      • FileFactoryConfiguration

        protected FileFactoryConfiguration​(java.lang.Class clazz,
                                           java.lang.String id)
    • Method Detail

      • readImpl

        protected abstract void readImpl​(java.net.URL url)
                                  throws java.io.IOException

        Reads an configuration from an URL.

        Parameters:
        url - the InputStream to read from
        Throws:
        java.io.IOException - if a problem occurs
      • read

        public void read​(java.lang.String path)

        Reads a configuration file from the specified file path and sets up the configuration from that. If the file does not exist, a ResourceNotFoundException will be thrown.

        Parameters:
        path - the path to the file to be read from
      • read

        public void read​(java.net.URL url)
      • read

        public void read​(java.lang.String path,
                         boolean required)
      • read

        public void read​(java.net.URL url,
                         boolean required)
      • read

        public void read​(java.lang.String path,
                         boolean required,
                         org.slf4j.Logger log)
      • findURL

        protected java.net.URL findURL​(java.lang.String path)
      • read

        protected void read​(java.net.URL url,
                            boolean required,
                            org.slf4j.Logger log)