1 package org.jmux.app.component.config; 2 3 import java.util.List; 4 5 /****************************************************************************** 6 jmux - Java Modules Using XML 7 Copyright © 2006 jmux.org 8 9 This library is free software; you can redistribute it and/or 10 modify it under the terms of the GNU Lesser General Public 11 License as published by the Free Software Foundation; either 12 version 2.1 of the License, or (at your option) any later version. 13 14 This library is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 Lesser General Public License for more details. 18 19 You should have received a copy of the GNU Lesser General Public 20 License along with this library; if not, write to the Free Software 21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 *****************************************************************************/ 23 24 /*** 25 * @author donaldw 26 */ 27 public interface Config { 28 boolean getBoolean(boolean defaultVal); 29 30 boolean getBoolean(boolean defaultVal, String... names); 31 32 String getString(String defaultVal); 33 34 String getString(String defaultVal, String... names); 35 36 int getInteger(int defaultVal); 37 38 int getInteger(int defaultVal, String... names); 39 40 List<Config> getConfs(String name); 41 42 Config getConf(String name); 43 44 String getName(); 45 }