Search in sources :

Example 1 with WMIDataSource

use of org.jkiss.dbeaver.ext.wmi.model.WMIDataSource in project dbeaver by serge-rider.

the class WMIDataSourceProvider method openDataSource.

@NotNull
@Override
public DBPDataSource openDataSource(@NotNull DBRProgressMonitor monitor, @NotNull DBPDataSourceContainer container) throws DBException {
    if (!libLoaded) {
        DBPDriver driver = container.getDriver();
        driver.loadDriver(monitor);
        loadNativeLib(driver);
        libLoaded = true;
    }
    return new WMIDataSource(container);
}
Also used : DBPDriver(org.jkiss.dbeaver.model.connection.DBPDriver) WMIDataSource(org.jkiss.dbeaver.ext.wmi.model.WMIDataSource) NotNull(org.jkiss.code.NotNull)

Aggregations

NotNull (org.jkiss.code.NotNull)1 WMIDataSource (org.jkiss.dbeaver.ext.wmi.model.WMIDataSource)1 DBPDriver (org.jkiss.dbeaver.model.connection.DBPDriver)1