submarine.connectors
Class PropertiesResource
java.lang.Object
|
+--submarine.connectors.PropertiesResource
- All Implemented Interfaces:
- Resource, XMLConfigurable
- public class PropertiesResource
- extends java.lang.Object
- implements Resource
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 |
props
private java.util.Properties props
fileName
private java.lang.String fileName
shouldStoreImmediatly
private boolean shouldStoreImmediatly
PropertiesResource
public PropertiesResource()
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)