Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marauroa
Class Configuration  view Configuration download Configuration.java

java.lang.Object
  extended bymarauroa.Configuration

public class Configuration
extends java.lang.Object

This class is a basic configuration file manager


Nested Class Summary
static class Configuration.PropertyFileNotFoundException
           
static class Configuration.PropertyNotFoundException
           
 
Field Summary
private static Configuration configuration
           
private static java.lang.String configurationFile
           
private  java.util.Properties properties
           
 
Constructor Summary
private Configuration()
          Constructor
 
Method Summary
 java.lang.String get(java.lang.String property)
          This method returns a String with the value of the property.
static Configuration getConfiguration()
          This method returns an instance of Configuration
 void set(java.lang.String property, java.lang.String value)
          This method set a property with the value we pass as parameter
static void setConfigurationFile(java.lang.String conf)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configurationFile

private static java.lang.String configurationFile

properties

private java.util.Properties properties

configuration

private static Configuration configuration
Constructor Detail

Configuration

private Configuration()
               throws Configuration.PropertyFileNotFoundException
Constructor

Method Detail

setConfigurationFile

public static void setConfigurationFile(java.lang.String conf)

getConfiguration

public static Configuration getConfiguration()
                                      throws Configuration.PropertyFileNotFoundException
This method returns an instance of Configuration


get

public java.lang.String get(java.lang.String property)
                     throws Configuration.PropertyNotFoundException
This method returns a String with the value of the property.


set

public void set(java.lang.String property,
                java.lang.String value)
This method set a property with the value we pass as parameter


store

public void store()
           throws Configuration.PropertyFileNotFoundException