Interface DataSourceConfigurationChangeListener
public interface DataSourceConfigurationChangeListener
This 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
Modifier and TypeMethodDescriptionvoid
This method will called if a DataSourceConfiguration was created.void
propertyChanged
(DataSourceConfiguration dsc, String property, String oldValue, String newValue) This method will invoked if a property of a DataSourceConfiguration was changed.void
This method will called if a DataSourceConfiguration was removed from list.
-
Method Details
-
propertyChanged
void propertyChanged(DataSourceConfiguration dsc, String property, String oldValue, 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
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
This method will called if a DataSourceConfiguration was removed from list.- Parameters:
dsc
- the DataSourceConfiguration that was removed.- Since:
- 8.0
-