public class SingleDataSourceTracker extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SingleDataSourceTracker.ServiceListener |
| Constructor and Description |
|---|
SingleDataSourceTracker(ObjectPoolTracker<DataSource> poolTracker,
String dataSourceId,
SingleDataSourceTracker.ServiceListener listener)
Create a new single datasource tracker
|
public SingleDataSourceTracker(ObjectPoolTracker<DataSource> poolTracker, String dataSourceId, SingleDataSourceTracker.ServiceListener listener) throws org.osgi.framework.InvalidSyntaxException
poolTracker - the pool tracker to usedataSourceId - the id of the datasource to tracklistener - the listener that gets notified (must not be null)org.osgi.framework.InvalidSyntaxExceptionprotected void setDataSource(DataSource service)
public void open()
public void close()
Copyright © 2016 Eclipse SCADA Project. All rights reserved.