Package com.codingcrayons.aspectfaces.exceptions

Examples of com.codingcrayons.aspectfaces.exceptions.ConfigurationFileNotFoundException


  public PropertyLoader(String propertiesFile) throws ConfigurationFileNotFoundException, ConfigurationParsingException {
    InputStream inputStream = this.getClass().getResourceAsStream(propertiesFile);
    try {
      if (inputStream == null) {
        LOGGER.trace("Properties file '" + propertiesFile + "' not found.");
        throw new ConfigurationFileNotFoundException("Properties file '" + propertiesFile + "' not found.");
      } else {
        loadProperties(new InputStreamReader(inputStream));
      }
    } finally {
      try {
View Full Code Here


    try {
      if (url.openConnection().getLastModified() > loadedTime) {
        return true;
      }
    } catch (IOException e) {
      throw new ConfigurationFileNotFoundException("Problem with configuration " + url.getFile() + " occured.", e);
    }
    return false;
  }
View Full Code Here

  protected final void loadConfiguration() throws ConfigurationFileNotFoundException, ConfigurationParsingException {
    InputStream in;
    try {
      in = this.url.openStream();
    } catch (IOException e) {
      throw new ConfigurationFileNotFoundException("Problem with configuration " + url.getFile() + " occured.", e);
    }
    this.loadedTime = Calendar.getInstance().getTime().getTime();
    this.getParser().parseConfiguration(in, configuration);
    this.configuration.setLoaded(true);
  }
View Full Code Here

    throws ConfigurationParsingException, ConfigurationFileNotFoundException {

    try {
      this.parseConfiguration(new FileInputStream(file), configuration);
    } catch (FileNotFoundException e) {
      throw new ConfigurationFileNotFoundException(file.getAbsolutePath() + " file not found.", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.codingcrayons.aspectfaces.exceptions.ConfigurationFileNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.