提交 76a92035 编写于 作者: M Marat Kalibekov

232 - Move PostgreDataSourceAdapter to EE edition (for Kerberos)


Former-commit-id: 0455f9a0
上级 d5800fe8
......@@ -522,12 +522,6 @@
</handler>
</extension>
<extension point="org.eclipse.core.runtime.adapters">
<factory adaptableType="org.jkiss.dbeaver.ext.postgresql.model.PostgreDataSource" class="org.jkiss.dbeaver.ext.postgresql.model.PostgreDataSourceAdapter">
<adapter type="org.jkiss.dbeaver.model.impl.jdbc.JDBCConnectionConfigurer"/>
</factory>
</extension>
<extension point="org.jkiss.dbeaver.dashboard">
<dashboard id="postgresql.sessionCount" label="Server sessions" defaultView="timeseries" group="Standard" updatePeriod="2000"
......
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.dbeaver.ext.postgresql.model;
import org.eclipse.core.runtime.IAdapterFactory;
import org.jkiss.dbeaver.model.impl.jdbc.JDBCConnectionConfigurer;
public class PostgreDataSourceAdapter implements IAdapterFactory {
private static final Class<?>[] CLASSES = new Class[] { JDBCConnectionConfigurer.class };
@Override
public <T> T getAdapter(Object adaptableObject, Class<T> adapterType) {
if (adapterType == JDBCConnectionConfigurer.class) {
if (adaptableObject instanceof PostgreDataSource) {
// TODO: some PG connectivity additions
}
return null;
}
return null;
}
@Override
public Class<?>[] getAdapterList() {
return CLASSES;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册