Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96D3E10E83 for ; Tue, 3 Sep 2013 20:07:53 +0000 (UTC) Received: (qmail 92982 invoked by uid 500); 3 Sep 2013 20:07:52 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 92751 invoked by uid 500); 3 Sep 2013 20:07:52 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 92717 invoked by uid 99); 3 Sep 2013 20:07:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 20:07:52 +0000 Date: Tue, 3 Sep 2013 20:07:51 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CONFIGURATION-553) Support custom search strategies for configuration files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Oliver Heger created CONFIGURATION-553: ------------------------------------------ Summary: Support custom search strategies for configuration files Key: CONFIGURATION-553 URL: https://issues.apache.org/jira/browse/CONFIGURATION-553 Project: Commons Configuration Issue Type: Improvement Affects Versions: 1.9 Reporter: Oliver Heger Fix For: 2.0 Via the {{FileSystem}} class it is already possible to influence locating and loading of configuration files. However, the API is quite complex, and it is not obvious which methods to override. It would be easier to have a specialized interface for a locator strategy. This would make the implementation of custom search strategies straight-forward. A default implementation of this interface can be provided which implements the currently used search algorithm (which is currently hard-coded in {{ConfigurationUtils}}). In general, there is room for improvements in the file system implementations. For instance, functionality seems to be partly implemented in {{ConfigurationUtils}} and partly in {{DefaultFileSystem}}. I would like to remove the code related to the localization of configuration files from {{ConfigurationUtils}} and create a specialized utility class in the {{io}} package. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira