Class DefaultVersionManager

    • Constructor Detail

      • DefaultVersionManager

        public DefaultVersionManager​(CamelCatalog camelCatalog)
    • Method Detail

      • loadVersion

        public boolean loadVersion​(String version)
        Description copied from interface: VersionManager
        Attempt to load the Camel version to be used by the catalog.

        Loading the camel-catalog JAR of the given version of choice may require internet access to download the JAR from Maven central. You can pre download the JAR and install in a local Maven repository to avoid internet access for offline environments.

        Specified by:
        loadVersion in interface VersionManager
        Parameters:
        version - the Camel version such as 2.17.1
        Returns:
        true if the version was loaded, false if not.
      • loadRuntimeProviderVersion

        public boolean loadRuntimeProviderVersion​(String groupId,
                                                  String artifactId,
                                                  String version)
        Description copied from interface: VersionManager
        Attempt to load the runtime provider version to be used by the catalog.

        Loading the runtime provider JAR of the given version of choice may require internet access to download the JAR from Maven central. You can pre download the JAR and install in a local Maven repository to avoid internet access for offline environments.

        Specified by:
        loadRuntimeProviderVersion in interface VersionManager
        Parameters:
        groupId - the runtime provider Maven groupId
        artifactId - the runtime provider Maven artifactId
        version - the runtime provider Maven version
        Returns:
        true if the version was loaded, false if not.
      • getResourceAsStream

        public InputStream getResourceAsStream​(String name)
        Description copied from interface: VersionManager
        Returns an input stream for reading the specified resource from the loaded Catalog version.
        Specified by:
        getResourceAsStream in interface VersionManager
        Parameters:
        name - the resource name
        Returns:
        the stream if found, or null if not found.