/** * Returns the connector dto converter for the given <code>connectorType</code>. * * @param connectorType connector type * @return Returns the connector dto converter for the given <code>connectorType</code> */ public ConnectorInfoConverter getInfoConverter(final String connectorType) { return getPlugin(connectorType).getInfoConverter(); }
/** * Installs the plugins. * * @param connectorPlugin service plugin */ private void installPlugin(final ConnectorPlugin connectorPlugin) { this.connectorManager.addPlugin(connectorPlugin); this.typeConverterFactory.register(connectorPlugin.getType(), connectorPlugin.getTypeConverter()); } }
/** * add Plugin. * * @param connectorPlugin connector plugin */ public void addPlugin(final ConnectorPlugin connectorPlugin) { plugins.put(connectorPlugin.getType(), connectorPlugin); }
/** * Returns the connector type converter for the given <code>connectorType</code>. * * @param connectorType connector type * @return Returns the connector type converter for the given <code>connectorType</code> */ public ConnectorTypeConverter getTypeConverter(final String connectorType) { return getPlugin(connectorType).getTypeConverter(); }
final ConnectorFactory connectorFactory = connectorPlugin.create(connectorContext); try { databaseServices.add(connectorFactory.getDatabaseService());