public abstract class AbstractConnectionManager<ConnectionServiceType extends ConnectionService> extends Object implements org.eclipse.scada.utils.osgi.SingleServiceListener<DriverFactory>
| Constructor and Description |
|---|
AbstractConnectionManager(Class<ConnectionServiceType> clazz,
BundleContext context,
String connectionId,
org.eclipse.scada.core.ConnectionInformation connectionInformation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConnection()
Create a new connection and register it with OSGi
|
protected abstract AbstractConnectionService |
createConnectionService(DriverFactory factory,
org.eclipse.scada.core.ConnectionInformation connectionInformation) |
void |
dispose()
Dispose the tracker and the connection
|
protected void |
disposeConnection()
Revoke the service registration and dispose the service
|
void |
serviceChange(ServiceReference<DriverFactory> reference,
DriverFactory factory) |
public AbstractConnectionManager(Class<ConnectionServiceType> clazz, BundleContext context, String connectionId, org.eclipse.scada.core.ConnectionInformation connectionInformation)
public void dispose()
public void serviceChange(ServiceReference<DriverFactory> reference, DriverFactory factory)
serviceChange in interface org.eclipse.scada.utils.osgi.SingleServiceListener<DriverFactory>protected void createConnection()
protected abstract AbstractConnectionService createConnectionService(DriverFactory factory, org.eclipse.scada.core.ConnectionInformation connectionInformation)
protected void disposeConnection()
Does nothing if there is no current registration