public class DelegatingPropertyFileHandler extends Object implements PropertyFileHandler
PropertyFileHandler that delegates to another handler.| Constructor and Description |
|---|
DelegatingPropertyFileHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete() |
void |
delete(String m) |
boolean |
exists() |
String |
get(String m) |
Properties |
getAll() |
protected PropertyFileHandler |
getDelegate()
Get the delegate.
|
File |
getFile(boolean create) |
String |
getPath() |
void |
save(String m,
String value) |
void |
saveAll(Properties properties) |
protected void |
setDelegate(PropertyFileHandler delegate)
Set the delegate.
|
protected PropertyFileHandler getDelegate()
protected void setDelegate(PropertyFileHandler delegate)
delegate - the delegatepublic void delete(String m) throws ConfigurationError
delete in interface PropertyFileHandlerConfigurationErrorpublic boolean delete()
delete in interface PropertyFileHandlerpublic boolean exists()
exists in interface PropertyFileHandlerpublic String get(String m) throws ConfigurationError
get in interface PropertyFileHandlerConfigurationErrorpublic Properties getAll() throws ConfigurationError
getAll in interface PropertyFileHandlerConfigurationErrorpublic File getFile(boolean create) throws IOException
getFile in interface PropertyFileHandlerIOExceptionpublic String getPath()
getPath in interface PropertyFileHandlerpublic void save(String m, String value) throws ConfigurationError
save in interface PropertyFileHandlerConfigurationErrorpublic void saveAll(Properties properties) throws ConfigurationError
saveAll in interface PropertyFileHandlerConfigurationErrorCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.