Java 类org.apache.camel.catalog.connector.DefaultCamelConnectorCatalog 实例源码

项目:syndesis-rest    文件:ConnectorCatalog.java   
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);
        }
    }
项目:syndesis    文件:ConnectorCatalog.java   
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");
}
项目:connectors    文件:ConnectorCatalog.java   
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");
}