public class DefaultVersionManager extends Object implements VersionManager
Constructor and Description |
---|
DefaultVersionManager(CamelCatalog camelCatalog) |
Modifier and Type | Method and Description |
---|---|
String |
getLoadedVersion()
Gets the current loaded Camel version used by the catalog.
|
InputStream |
getResourceAsStream(String name)
Returns an input stream for reading the specified resource from the loaded Catalog version.
|
String |
getRuntimeProviderLoadedVersion()
Gets the current loaded runtime provider version used by the catalog.
|
boolean |
loadRuntimeProviderVersion(String groupId,
String artifactId,
String version)
Attempt to load the runtime provider version to be used by the catalog.
|
boolean |
loadVersion(String version)
Attempt to load the Camel version to be used by the catalog.
|
public DefaultVersionManager(CamelCatalog camelCatalog)
public String getLoadedVersion()
VersionManager
getLoadedVersion
in interface VersionManager
public boolean loadVersion(String version)
VersionManager
loadVersion
in interface VersionManager
version
- the Camel version such as 2.17.1public String getRuntimeProviderLoadedVersion()
VersionManager
getRuntimeProviderLoadedVersion
in interface VersionManager
public boolean loadRuntimeProviderVersion(String groupId, String artifactId, String version)
VersionManager
loadRuntimeProviderVersion
in interface VersionManager
groupId
- the runtime provider Maven groupIdartifactId
- the runtime provider Maven artifactIdversion
- the runtime provider Maven versionpublic InputStream getResourceAsStream(String name)
VersionManager
getResourceAsStream
in interface VersionManager
name
- the resource nameApache Camel