本文整理汇总了Java中org.apache.camel.catalog.connector.DefaultCamelConnectorCatalog类的典型用法代码示例。如果您正苦于以下问题:Java DefaultCamelConnectorCatalog类的具体用法?Java DefaultCamelConnectorCatalog怎么用?Java DefaultCamelConnectorCatalog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DefaultCamelConnectorCatalog类属于org.apache.camel.catalog.connector包,在下文中一共展示了DefaultCamelConnectorCatalog类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ConnectorCatalog
import org.apache.camel.catalog.connector.DefaultCamelConnectorCatalog; //导入依赖的package包/类
public ConnectorCatalog(ConnectorCatalogProperties props) {
connectorCatalog = new DefaultCamelConnectorCatalog();
camelCatalog = new DefaultCamelCatalog(true);
prefetchConnectors();
maven = new DefaultMavenArtifactProvider();
for (Map.Entry<String, String> repo : props.getMavenRepos().entrySet()) {
maven.addMavenRepository(repo.getKey(), repo.getValue());
}
for (String gav : props.getConnectorGAVs()) {
addConnector(gav);
}
}
示例2: init
import org.apache.camel.catalog.connector.DefaultCamelConnectorCatalog; //导入依赖的package包/类
public void init() throws Exception {
connectorCatalog = new DefaultCamelConnectorCatalog();
camelCatalog = new DefaultCamelCatalog(true);
maven = new DefaultMavenArtifactProvider();
// add 3rd party maven repos
System.out.println("Adding bintray and jcenter as 3rd party Maven repositories");
maven.addMavenRepository("jcenter", "https://jcenter.bintray.com");
}