|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertiesDataSourceAccessor
Interface to access property information from a data source.
Method Summary | |
---|---|
void |
deleteProperty(String config, String name) Deletes the property from the store. |
Property |
getProperty(String config, String name) Reads the property with the given name from the data source. |
void |
setProperties(PropertyProvider provider) Stores all properties provided by the given provider. |
void |
setProperty(String config, String name, String value) Sets the property to the given name and value. |
Method Detail |
---|
Property getProperty(String config, String name) throws NullPointerException, IllegalArgumentException, DataSourceException
config
- the name of the configuration the property is part of.
name
- the name of the property to fetch.
null
, if no such property is stored in the data source.
NullPointerException
- if
config
or
name
is
null
.
IllegalArgumentException
- if
config
or
name
is blank.
DataSourceException
- on any problem accessing the data source.
void setProperty(String config, String name, String value) throws NullPointerException, IllegalArgumentException, DataSourceException
config
- the name of the configuration the property is part of.
name
- the name of the property to set.
value
- the value of the property.
NullPointerException
- if
config
or
name
is
null
.
IllegalArgumentException
- if
config
or
name
is blank.
DataSourceException
- on any problem accessing the data source.
void setProperties(PropertyProvider provider) throws NullPointerException, DataSourceException
provider
- the provider of properties to store.
NullPointerException
- if
provider
is
null
.
DataSourceException
- on any problem accessing the data source.
void deleteProperty(String config, String name) throws NullPointerException, IllegalArgumentException, DataSourceException
config
- the name of the configuration the property is part of.
name
- the name of the property to delete.
NullPointerException
- if
config
or
name
is
null
.
IllegalArgumentException
- if
config
or
name
is blank.
DataSourceException
- on any problem accessing the data source.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |