Package org.n52.iceland.util
Class DelegatingPropertyFileHandler
- java.lang.Object
-
- org.n52.iceland.util.DelegatingPropertyFileHandler
-
- All Implemented Interfaces:
PropertyFileHandler
- Direct Known Subclasses:
DatabaseSettingsHandler
public class DelegatingPropertyFileHandler extends Object implements PropertyFileHandler
PropertyFileHandlerthat delegates to another handler.
-
-
Constructor Summary
Constructors Constructor Description DelegatingPropertyFileHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete()voiddelete(String m)booleanexists()Stringget(String m)PropertiesgetAll()protected PropertyFileHandlergetDelegate()Get the delegate.FilegetFile(boolean create)StringgetPath()voidsave(String m, String value)voidsaveAll(Properties properties)protected voidsetDelegate(PropertyFileHandler delegate)Set the delegate.
-
-
-
Method Detail
-
getDelegate
protected PropertyFileHandler getDelegate()
Get the delegate.- Returns:
- the delegate
-
setDelegate
protected void setDelegate(PropertyFileHandler delegate)
Set the delegate.- Parameters:
delegate- the delegate
-
delete
public void delete(String m) throws ConfigurationError
- Specified by:
deletein interfacePropertyFileHandler- Throws:
ConfigurationError
-
delete
public boolean delete()
- Specified by:
deletein interfacePropertyFileHandler
-
exists
public boolean exists()
- Specified by:
existsin interfacePropertyFileHandler
-
get
public String get(String m) throws ConfigurationError
- Specified by:
getin interfacePropertyFileHandler- Throws:
ConfigurationError
-
getAll
public Properties getAll() throws ConfigurationError
- Specified by:
getAllin interfacePropertyFileHandler- Throws:
ConfigurationError
-
getFile
public File getFile(boolean create) throws IOException
- Specified by:
getFilein interfacePropertyFileHandler- Throws:
IOException
-
getPath
public String getPath()
- Specified by:
getPathin interfacePropertyFileHandler
-
save
public void save(String m, String value) throws ConfigurationError
- Specified by:
savein interfacePropertyFileHandler- Throws:
ConfigurationError
-
saveAll
public void saveAll(Properties properties) throws ConfigurationError
- Specified by:
saveAllin interfacePropertyFileHandler- Throws:
ConfigurationError
-
-