Interface DataSourceConfigurationChangeListener
-
public interface DataSourceConfigurationChangeListenerThis interface can be useful for GUI tools that have to get notified if a DataSourceConfiguration was changed. You can the information when a new DataSourceConfiguration was created, when an existing DataSourceConfiguration was deleted and when a property of a DataSourceConfiguration was changed.
DataSourceConfigurationManager.addDataSourceConfigurationListener(new DataSourceConfigurationChangeListener(){ public void propertyChanged(DataSourceConfiguration dsc, String property, String oldValue, String newValue){ // implement your code here } public void addedDataSourceConfiguration(DataSourceConfiguration dsc){ // implement your code here } public void removedDataSourceConfiguration(DataSourceConfiguration dsc){ // implement your code here } });- Since:
- 8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddedDataSourceConfiguration(DataSourceConfiguration dsc)This method will called if a DataSourceConfiguration was created.voidpropertyChanged(DataSourceConfiguration dsc, java.lang.String property, java.lang.String oldValue, java.lang.String newValue)This method will invoked if a property of a DataSourceConfiguration was changed.voidremovedDataSourceConfiguration(DataSourceConfiguration dsc)This method will called if a DataSourceConfiguration was removed from list.
-
-
-
Method Detail
-
propertyChanged
void propertyChanged(DataSourceConfiguration dsc, java.lang.String property, java.lang.String oldValue, java.lang.String newValue)
This method will invoked if a property of a DataSourceConfiguration was changed.- Parameters:
dsc- the DataSourceConfiguration object that was edited.property- the property that was changed.oldValue- the old value.newValue- the new value.- Since:
- 8.0
-
addedDataSourceConfiguration
void addedDataSourceConfiguration(DataSourceConfiguration dsc)
This method will called if a DataSourceConfiguration was created. At the timestamp of invoke this method, the datasource configuration has no properties, only the configuration name is set.- Parameters:
dsc- the DataSourceConfiguration that was created.- Since:
- 8.0
-
removedDataSourceConfiguration
void removedDataSourceConfiguration(DataSourceConfiguration dsc)
This method will called if a DataSourceConfiguration was removed from list.- Parameters:
dsc- the DataSourceConfiguration that was removed.- Since:
- 8.0
-
-