public abstract class MultiDataSourceListener extends Object
Constructor and Description |
---|
MultiDataSourceListener(ObjectPoolTracker<DataSource> poolTracker) |
Modifier and Type | Method and Description |
---|---|
void |
addDataSource(String datasourceKey,
String datasourceId,
VariantType type) |
void |
clearSources()
Clear all datasources
|
void |
dispose() |
Map<String,DataSourceHandler> |
getSourcesCopy() |
VariantType |
getType(String type) |
protected abstract void |
handleChange(Map<String,DataSourceHandler> sources) |
void |
setDataSources(Map<String,String> parameters)
Set datasources to include all datasources in the properties set with the prefix "datasource."
|
protected void |
triggerHandleChange() |
public MultiDataSourceListener(ObjectPoolTracker<DataSource> poolTracker)
public Map<String,DataSourceHandler> getSourcesCopy()
public void setDataSources(Map<String,String> parameters) throws InvalidSyntaxException
This will clear the already existing datasources.
parameters
- the list of propertiesInvalidSyntaxException
public VariantType getType(String type)
protected abstract void handleChange(Map<String,DataSourceHandler> sources)
public void addDataSource(String datasourceKey, String datasourceId, VariantType type) throws InvalidSyntaxException
InvalidSyntaxException
protected void triggerHandleChange()
public void clearSources()
public void dispose()