Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45B0FD9D2 for ; Wed, 3 Oct 2012 19:16:39 +0000 (UTC) Received: (qmail 6461 invoked by uid 500); 3 Oct 2012 19:16:39 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 6361 invoked by uid 500); 3 Oct 2012 19:16:39 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 6353 invoked by uid 99); 3 Oct 2012 19:16:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 19:16:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 19:16:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 3692523888FE for ; Wed, 3 Oct 2012 19:15:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1393691 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java Date: Wed, 03 Oct 2012 19:15:52 -0000 To: commits@commons.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121003191552.3692523888FE@eris.apache.org> Author: oheger Date: Wed Oct 3 19:15:51 2012 New Revision: 1393691 URL: http://svn.apache.org/viewvc?rev=1393691&view=rev Log: Added BuilderParameters interface. Added: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java (with props) Added: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java?rev=1393691&view=auto ============================================================================== --- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java (added) +++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java Wed Oct 3 19:15:51 2012 @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.configuration.builder; + +import java.util.Map; + +/** + *

+ * An interface to be implemented by objects which can be used to parameterize a + * {@link ConfigurationBuilder}. + *

+ *

+ * This interface is part of a Java DSL for creating and initializing builders + * for specific {@code Configuration} classes. Concrete implementations + * typically collect a set of related properties for the builder. There will be + * specific set methods for providing values for these properties. Then, this + * interface requires a generic {@code getParameters()} method which has to + * return all property values as a map. When constructing the builder the map is + * evaluated to define properties of the {@code Configuration} objects to be + * constructed. + *

+ * + * @version $Id$ + * @since 2.0 + */ +public interface BuilderParameters +{ + /** + * Returns a map with all parameters defined by this objects. The keys of + * the map correspond to concrete properties supported by the + * {@code Configuration} implementation class the builder produces. The + * values are the corresponding property values. The return value must not + * be null. + * + * @return a map with builder parameters + */ + Map getParameters(); +} Propchange: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Propchange: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BuilderParameters.java ------------------------------------------------------------------------------ svn:mime-type = text/plain