本文整理汇总了Java中org.camunda.connect.spi.Connector类的典型用法代码示例。如果您正苦于以下问题:Java Connector类的具体用法?Java Connector怎么用?Java Connector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Connector类属于org.camunda.connect.spi包,在下文中一共展示了Connector类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerConnectors
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
protected void registerConnectors(Map<String, Connector<?>> connectors, ClassLoader classLoader) {
ServiceLoader<ConnectorProvider> providers = ServiceLoader.load(ConnectorProvider.class, classLoader);
for (ConnectorProvider provider : providers) {
registerProvider(connectors, provider);
}
}
示例2: registerProvider
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
protected void registerProvider(Map<String, Connector<?>> connectors, ConnectorProvider provider) {
String connectorId = provider.getConnectorId();
if (connectors.containsKey(connectorId)) {
throw LOG.multipleConnectorProvidersFound(connectorId);
}
else {
Connector<?> connectorInstance = provider.createConnectorInstance();
LOG.connectorProviderDiscovered(provider, connectorId, connectorInstance);
connectors.put(connectorId, connectorInstance);
}
}
示例3: applyConfigurators
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
protected void applyConfigurators(Map<String, Connector<?>> connectors, ClassLoader classLoader) {
ServiceLoader<ConnectorConfigurator> configurators = ServiceLoader.load(ConnectorConfigurator.class, classLoader);
for (ConnectorConfigurator configurator : configurators) {
LOG.connectorConfiguratorDiscovered(configurator);
applyConfigurator(connectors, configurator);
}
}
示例4: applyConfigurator
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
protected void applyConfigurator(Map<String, Connector<?>> connectors, ConnectorConfigurator configurator) {
for (Connector<?> connector : connectors.values()) {
if (configurator.getConnectorClass().isAssignableFrom(connector.getClass())) {
configurator.configure(connector);
}
}
}
示例5: testConnectorsRegistered
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
public void testConnectorsRegistered() {
Connector<?> http = Connectors.getConnector(HttpConnector.ID);
assertNotNull(http);
Connector<?> soap = Connectors.getConnector(SoapHttpConnector.ID);
assertNotNull(soap);
Connector<?> test = Connectors.getConnector(TestConnector.ID);
assertNotNull(test);
}
示例6: createConnectorInstance
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
@Override
public Connector<?> createConnectorInstance() {
return new PollMailConnector();
}
示例7: PollMailRequest
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
public PollMailRequest(Connector<?> connector, MailConfiguration configuration) {
super(connector);
this.configuration = configuration;
}
示例8: SendMailRequest
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
public SendMailRequest(Connector<?> connector, MailConfiguration configuration) {
super(connector);
this.configuration = configuration;
}
示例9: createConnectorInstance
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
@Override
public Connector<?> createConnectorInstance() {
return new SendMailConnector();
}
示例10: createConnectorInstance
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
@Override
public Connector<?> createConnectorInstance() {
return new DeleteMailConnector();
}
示例11: DeleteMailRequest
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
public DeleteMailRequest(Connector<?> connector, MailConfiguration configuration) {
super(connector);
this.configuration = configuration;
}
示例12: AbstractHttpRequest
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
public AbstractHttpRequest(Connector connector) {
super(connector);
}
示例13: HttpRequestImpl
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
public HttpRequestImpl(Connector connector) {
super(connector);
}
示例14: shouldDiscoverConnector
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
@Test
public void shouldDiscoverConnector() {
Connector http = Connectors.getConnector(HttpConnector.ID);
assertThat(http).isNotNull();
}
示例15: shouldDiscoverConnector
import org.camunda.connect.spi.Connector; //导入依赖的package包/类
@Test
public void shouldDiscoverConnector() {
Connector soap = Connectors.getConnector(SoapHttpConnector.ID);
assertThat(soap).isNotNull();
}