submarine.connectors
Class PropertiesResource

java.lang.Object
  |
  +--submarine.connectors.PropertiesResource
All Implemented Interfaces:
Resource, XMLConfigurable

public class PropertiesResource
extends java.lang.Object
implements Resource


Field Summary
private  java.lang.String fileName
           
private  java.util.Properties props
           
private  boolean shouldStoreImmediatly
           
 
Constructor Summary
PropertiesResource()
           
 
Method Summary
 void close()
           
 java.lang.String getProperty(java.lang.String name)
           
 void init(org.w3c.dom.Element xml)
           
 void open()
           
 void setProperty(java.lang.String name, java.lang.String value)
           
private  void store()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

props

private java.util.Properties props

fileName

private java.lang.String fileName

shouldStoreImmediatly

private boolean shouldStoreImmediatly
Constructor Detail

PropertiesResource

public PropertiesResource()
Method Detail

init

public void init(org.w3c.dom.Element xml)
          throws java.lang.Exception
Specified by:
init in interface XMLConfigurable
Following copied from interface: submarine.core.XMLConfigurable
Parameters:
xml -  
Throws:
java.lang.Exception -  

open

public void open()
Specified by:
open in interface Resource

store

private void store()

close

public void close()
Specified by:
close in interface Resource

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)

getProperty

public java.lang.String getProperty(java.lang.String name)

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.