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
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
open() |
protected void |
setDataSource(DataSource service) |
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.InvalidSyntaxException
protected void setDataSource(DataSource service)
public void open()
public void close()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.