/** * Find a configuration file * @param path path to a configuration file * @return toolbox factory configuration */ protected FactoryConfiguration findConfig(String path) { return ConfigurationUtils.find(path); }
/** * Returns a {@link FactoryConfiguration} loaded from a configuration file * at the specified path. If no such file is found at that path, this * will throw a {@link ResourceNotFoundException}. * * @param path configuration path * @return new {@link FactoryConfiguration} * @see #find(String path) */ public static FactoryConfiguration load(String path) { FactoryConfiguration config = find(path); if (config == null) { throw new ResourceNotFoundException("Could not find configuration at "+path); } return config; }