org.jpos.core
Class SimpleConfiguration
java.lang.Object
org.jpos.core.SimpleConfiguration
- All Implemented Interfaces:
- Configuration
public class SimpleConfiguration
- extends Object
- implements Configuration
- Since:
- jPOS 1.1
- Version:
- $Id$
- Author:
- apr@cs.com.uy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleConfiguration
public SimpleConfiguration()
SimpleConfiguration
public SimpleConfiguration(Properties props)
SimpleConfiguration
public SimpleConfiguration(String filename)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
get
public String get(String name,
String def)
- Specified by:
get in interface Configuration
getAll
public String[] getAll(String name)
- Specified by:
getAll in interface Configuration
- Parameters:
name - ditto
- Returns:
- all properties with a given name (or a zero length string)
getInts
public int[] getInts(String name)
- Specified by:
getInts in interface Configuration
getLongs
public long[] getLongs(String name)
- Specified by:
getLongs in interface Configuration
getDoubles
public double[] getDoubles(String name)
- Specified by:
getDoubles in interface Configuration
getBooleans
public boolean[] getBooleans(String name)
- Specified by:
getBooleans in interface Configuration
get
public String get(String name)
- Specified by:
get in interface Configuration
getInt
public int getInt(String name)
- Specified by:
getInt in interface Configuration
getInt
public int getInt(String name,
int def)
- Specified by:
getInt in interface Configuration
getLong
public long getLong(String name)
- Specified by:
getLong in interface Configuration
getLong
public long getLong(String name,
long def)
- Specified by:
getLong in interface Configuration
getDouble
public double getDouble(String name)
- Specified by:
getDouble in interface Configuration
getDouble
public double getDouble(String name,
double def)
- Specified by:
getDouble in interface Configuration
getBoolean
public boolean getBoolean(String name)
- Specified by:
getBoolean in interface Configuration
getBoolean
public boolean getBoolean(String name,
boolean def)
- Specified by:
getBoolean in interface Configuration
load
public void load(String filename)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
put
public void put(String name,
Object value)
- Specified by:
put in interface Configuration
- Parameters:
name - the Property namevalue - typically a String, but could be a String[] too
Copyright © 1998-2012 jPOS.org. All Rights Reserved.