Package org.apache.camel.catalog
Class DefaultCamelCatalog
java.lang.Object
org.apache.camel.catalog.impl.AbstractCamelCatalog
org.apache.camel.catalog.impl.AbstractCachingCamelCatalog
org.apache.camel.catalog.DefaultCamelCatalog
- All Implemented Interfaces:
CamelCatalog
public class DefaultCamelCatalog
extends org.apache.camel.catalog.impl.AbstractCachingCamelCatalog
implements CamelCatalog
Default
CamelCatalog.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionCreates theCamelCatalogwithout caching enabled.DefaultCamelCatalog(boolean caching) Creates theCamelCatalog -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(String name, String className) Adds a 3rd party component to this catalog.voidaddComponent(String name, String className, String jsonSchema) Adds a 3rd party component to this catalog.voidaddDataFormat(String name, String className) Adds a 3rd party data format to this catalog.voidaddDataFormat(String name, String className, String jsonSchema) Adds a 3rd party data format to this catalog.List<org.apache.camel.tooling.model.ReleaseModel> Load all Camel Quarkus releases from catalogList<org.apache.camel.tooling.model.ReleaseModel> Load all Camel releases (core and spring-boot) from catalogcomponentJSonSchema(String name) Returns the component information as JSON format.org.apache.camel.tooling.model.ComponentModelcomponentModel(String name) dataFormatJSonSchema(String name) Returns the data format information as JSON format.org.apache.camel.tooling.model.DataFormatModeldataFormatModel(String name) devConsoleJSonSchema(String name) org.apache.camel.tooling.model.DevConsoleModeldevConsoleModel(String name) org.apache.camel.tooling.model.EipModelvoidEnables caching of the resources which makes the catalog faster, but keeps data in memory during caching.Find all the pojo beans names from the Camel catalogFind all the unique label names all the components are using.Find all the component names from the Camel catalogfindComponentNames(String filter) Find all the component names from the Camel catalog that matches the labelFind all the unique label names all the data formats are using.Find all the data format names from the Camel catalogfindDataFormatNames(String filter) Find all the data format names from the Camel catalog that matches the labelFind all the dev-console names from the Camel catalogFind all the unique label names all the languages are using.Find all the language names from the Camel catalogfindLanguageNames(String filter) Find all the language names from the Camel catalog that matches the labelFind all the unique label names all the models are using.Find all the model names from the Camel catalogfindModelNames(String filter) Find all the model names from the Camel catalog that matches the labelFind all the unique label names all the other (miscellaneous) are using.Find all the other (miscellaneous) names from the Camel catalogfindOtherNames(String filter) Find all the other (miscellaneous) names from the Camel catalog that matches the labelFind all the transformer names from the Camel catalogThe version of this Camel CatalogGets the current loaded Camel version used by the catalog.Gets theRuntimeProviderin use.Gets the current loaded runtime provider version used by the catalog.Gets theVersionManagerin usebooleanWhether caching has been enabled.languageJSonSchema(String name) Returns the language information as JSON format.org.apache.camel.tooling.model.LanguageModellanguageModel(String name) Lists all the components summary details in JSonLists all the data formats summary details in JSonLists all the dev-consoles summary details in JSonLists all the languages summary details in JSonLists all the models (EIPs) summary details in JSonLists all the others (miscellaneous) summary details in JSonLists all the transformers summary details in JSonloadResource(String kind, String name) Load resource from catalog classpathbooleanloadRuntimeProviderVersion(String groupId, String artifactId, String version) Attempt to load the runtime provider version to be used by the catalog.booleanloadVersion(String version) Attempt to load the Camel version to be used by the catalog.Returns the camel-main json schemaorg.apache.camel.tooling.model.MainModelorg.apache.camel.tooling.model.ArtifactModel<?> modelFromMavenGAV(String groupId, String artifactId, String version) Lookup the model for the given Maven GAVmodelJSonSchema(String name) Returns the model information as JSON format.otherJSonSchema(String name) Returns the other (miscellaneous) information as JSON format.org.apache.camel.tooling.model.OtherModelotherModel(String name) org.apache.camel.tooling.model.PojoBeanModelpojoBeanModel(String name) voidsetRuntimeProvider(RuntimeProvider runtimeProvider) To plugin a customRuntimeProviderthat amends the catalog to only include information that is supported on the runtime.voidsetVersionManager(VersionManager versionManager) To plugin a customVersionManagerto load other versions of Camel the catalog should use.Returns the Camel Spring XML schemaReports a summary what the catalog contains in JSontransformerJSonSchema(String name) Returns the transformer information as JSON format.org.apache.camel.tooling.model.TransformerModeltransformerModel(String name) Returns the Camel XML-IO schemaMethods inherited from class org.apache.camel.catalog.impl.AbstractCachingCamelCatalog
cache, cache, cache, clearCache, doGetCache, getCache, setCachingMethods inherited from class org.apache.camel.catalog.impl.AbstractCamelCatalog
asEndpointUri, asEndpointUriXml, endpointComponentName, endpointLenientProperties, endpointProperties, getJSonSchemaResolver, getSuggestionStrategy, pojoBeanJSonSchema, setJSonSchemaResolver, setSuggestionStrategy, validateConfigurationProperty, validateEndpointProperties, validateEndpointProperties, validateEndpointProperties, validateLanguageExpression, validateLanguagePredicate, validateProperties, validateTimePatternMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.catalog.CamelCatalog
asEndpointUri, asEndpointUriXml, endpointComponentName, endpointLenientProperties, endpointProperties, findNames, getJSonSchemaResolver, getSuggestionStrategy, model, setJSonSchemaResolver, setSuggestionStrategy, validateConfigurationProperty, validateEndpointProperties, validateEndpointProperties, validateEndpointProperties, validateLanguageExpression, validateLanguagePredicate, validateTimePattern
-
Field Details
-
FIND_COMPONENT_NAMES
- See Also:
-
FIND_COMPONENT_LABELS
- See Also:
-
LIST_COMPONENTS_AS_JSON
- See Also:
-
FIND_DATA_FORMAT_NAMES
- See Also:
-
FIND_DATA_FORMAT_LABELS
- See Also:
-
LIST_DATA_FORMATS_AS_JSON
- See Also:
-
FIND_LANGUAGE_NAMES
- See Also:
-
FIND_LANGUAGE_LABELS
- See Also:
-
LIST_LANGUAGES_AS_JSON
- See Also:
-
FIND_TRANSFORMER_NAMES
- See Also:
-
LIST_TRANSFORMERS_AS_JSON
- See Also:
-
FIND_CONSOLE_NAMES
- See Also:
-
LIST_CONSOLES_AS_JSON
- See Also:
-
FIND_MODEL_NAMES
- See Also:
-
FIND_MODEL_LABELS
- See Also:
-
LIST_MODELS_AS_JSON
- See Also:
-
FIND_OTHER_NAMES
- See Also:
-
FIND_OTHER_LABELS
- See Also:
-
LIST_OTHERS_AS_JSON
- See Also:
-
FIND_BEAN_NAMES
- See Also:
-
LIST_BEANS_AS_JSON
- See Also:
-
SUMMARY_AS_JSON
- See Also:
-
-
Constructor Details
-
DefaultCamelCatalog
public DefaultCamelCatalog()Creates theCamelCatalogwithout caching enabled. -
DefaultCamelCatalog
public DefaultCamelCatalog(boolean caching) Creates theCamelCatalog- Parameters:
caching- whether to use cache
-
-
Method Details
-
getRuntimeProvider
Description copied from interface:CamelCatalogGets theRuntimeProviderin use.- Specified by:
getRuntimeProviderin interfaceCamelCatalog
-
setRuntimeProvider
Description copied from interface:CamelCatalogTo plugin a customRuntimeProviderthat amends the catalog to only include information that is supported on the runtime.- Specified by:
setRuntimeProviderin interfaceCamelCatalog
-
enableCache
public void enableCache()Description copied from interface:CamelCatalogEnables caching of the resources which makes the catalog faster, but keeps data in memory during caching. The catalog does not cache by default.- Specified by:
enableCachein interfaceCamelCatalog
-
isCaching
public boolean isCaching()Description copied from interface:CamelCatalogWhether caching has been enabled.- Specified by:
isCachingin interfaceCamelCatalog- Overrides:
isCachingin classorg.apache.camel.catalog.impl.AbstractCachingCamelCatalog
-
setVersionManager
Description copied from interface:CamelCatalogTo plugin a customVersionManagerto load other versions of Camel the catalog should use.- Specified by:
setVersionManagerin interfaceCamelCatalog
-
getVersionManager
Description copied from interface:CamelCatalogGets theVersionManagerin use- Specified by:
getVersionManagerin interfaceCamelCatalog
-
addComponent
Description copied from interface:CamelCatalogAdds a 3rd party component to this catalog.- Specified by:
addComponentin interfaceCamelCatalog- Parameters:
name- the component nameclassName- the fully qualified class name for the component class
-
addComponent
Description copied from interface:CamelCatalogAdds a 3rd party component to this catalog.- Specified by:
addComponentin interfaceCamelCatalog- Parameters:
name- the component nameclassName- the fully qualified class name for the component classjsonSchema- the component JSON schema
-
addDataFormat
Description copied from interface:CamelCatalogAdds a 3rd party data format to this catalog.- Specified by:
addDataFormatin interfaceCamelCatalog- Parameters:
name- the data format nameclassName- the fully qualified class name for the data format class
-
addDataFormat
Description copied from interface:CamelCatalogAdds a 3rd party data format to this catalog.- Specified by:
addDataFormatin interfaceCamelCatalog- Parameters:
name- the data format nameclassName- the fully qualified class name for the data format classjsonSchema- the data format JSON schema
-
getCatalogVersion
Description copied from interface:CamelCatalogThe version of this Camel Catalog- Specified by:
getCatalogVersionin interfaceCamelCatalog
-
loadVersion
Description copied from interface:CamelCatalogAttempt 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. When loading a new version the cache will be invalidated. Important: When loading a new runtime provider version, then its strongly advised to load the same/corresponding version first usingCamelCatalog.loadVersion(String).- Specified by:
loadVersionin interfaceCamelCatalog- Parameters:
version- the Camel version such as 2.17.1- Returns:
- true if the version was loaded, false if not.
-
getLoadedVersion
Description copied from interface:CamelCatalogGets the current loaded Camel version used by the catalog.- Specified by:
getLoadedVersionin interfaceCamelCatalog
-
getRuntimeProviderLoadedVersion
Description copied from interface:CamelCatalogGets the current loaded runtime provider version used by the catalog.- Specified by:
getRuntimeProviderLoadedVersionin interfaceCamelCatalog
-
loadRuntimeProviderVersion
Description copied from interface:CamelCatalogAttempt 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. Important: When loading a new runtime provider version, then its strongly advised to load the same/corresponding version first usingCamelCatalog.loadVersion(String).- Specified by:
loadRuntimeProviderVersionin interfaceCamelCatalog- Parameters:
groupId- the runtime provider Maven groupIdartifactId- the runtime provider Maven artifactIdversion- the runtime provider Maven version- Returns:
- true if the version was loaded, false if not.
-
findComponentNames
Description copied from interface:CamelCatalogFind all the component names from the Camel catalog- Specified by:
findComponentNamesin interfaceCamelCatalog
-
findDataFormatNames
Description copied from interface:CamelCatalogFind all the data format names from the Camel catalog- Specified by:
findDataFormatNamesin interfaceCamelCatalog
-
findLanguageNames
Description copied from interface:CamelCatalogFind all the language names from the Camel catalog- Specified by:
findLanguageNamesin interfaceCamelCatalog
-
findTransformerNames
Description copied from interface:CamelCatalogFind all the transformer names from the Camel catalog- Specified by:
findTransformerNamesin interfaceCamelCatalog
-
findDevConsoleNames
Description copied from interface:CamelCatalogFind all the dev-console names from the Camel catalog- Specified by:
findDevConsoleNamesin interfaceCamelCatalog
-
findModelNames
Description copied from interface:CamelCatalogFind all the model names from the Camel catalog- Specified by:
findModelNamesin interfaceCamelCatalog
-
findOtherNames
Description copied from interface:CamelCatalogFind all the other (miscellaneous) names from the Camel catalog- Specified by:
findOtherNamesin interfaceCamelCatalog
-
findBeansNames
Description copied from interface:CamelCatalogFind all the pojo beans names from the Camel catalog- Specified by:
findBeansNamesin interfaceCamelCatalog
-
findModelNames
Description copied from interface:CamelCatalogFind all the model names from the Camel catalog that matches the label- Specified by:
findModelNamesin interfaceCamelCatalog
-
findComponentNames
Description copied from interface:CamelCatalogFind all the component names from the Camel catalog that matches the label- Specified by:
findComponentNamesin interfaceCamelCatalog
-
findDataFormatNames
Description copied from interface:CamelCatalogFind all the data format names from the Camel catalog that matches the label- Specified by:
findDataFormatNamesin interfaceCamelCatalog
-
findLanguageNames
Description copied from interface:CamelCatalogFind all the language names from the Camel catalog that matches the label- Specified by:
findLanguageNamesin interfaceCamelCatalog
-
findOtherNames
Description copied from interface:CamelCatalogFind all the other (miscellaneous) names from the Camel catalog that matches the label- Specified by:
findOtherNamesin interfaceCamelCatalog
-
modelJSonSchema
Description copied from interface:CamelCatalogReturns the model information as JSON format.- Specified by:
modelJSonSchemain interfaceCamelCatalog- Overrides:
modelJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the model name- Returns:
- model details in JSon
-
eipModel
- Specified by:
eipModelin interfaceCamelCatalog- Overrides:
eipModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the EIP model name to look up- Returns:
- the requested EIP model or
nullin case it is not available in thisCamelCatalog
-
pojoBeanModel
- Specified by:
pojoBeanModelin interfaceCamelCatalog- Overrides:
pojoBeanModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the FQN class name to look up- Returns:
- the requested Bean model or
nullin case it is not available in thisCamelCatalog
-
componentJSonSchema
Description copied from interface:CamelCatalogReturns the component information as JSON format.- Specified by:
componentJSonSchemain interfaceCamelCatalog- Overrides:
componentJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the component name- Returns:
- component details in JSon
-
componentModel
- Specified by:
componentModelin interfaceCamelCatalog- Overrides:
componentModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the component name to look up- Returns:
- the requested component or
nullin case it is not available in thisCamelCatalog
-
dataFormatJSonSchema
Description copied from interface:CamelCatalogReturns the data format information as JSON format.- Specified by:
dataFormatJSonSchemain interfaceCamelCatalog- Overrides:
dataFormatJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the data format name- Returns:
- data format details in JSon
-
dataFormatModel
- Specified by:
dataFormatModelin interfaceCamelCatalog- Overrides:
dataFormatModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the data format name to look up- Returns:
- the requested data format or
nullin case it is not available in thisCamelCatalog
-
languageJSonSchema
Description copied from interface:CamelCatalogReturns the language information as JSON format.- Specified by:
languageJSonSchemain interfaceCamelCatalog- Overrides:
languageJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the language name- Returns:
- language details in JSon
-
transformerJSonSchema
Description copied from interface:CamelCatalogReturns the transformer information as JSON format.- Specified by:
transformerJSonSchemain interfaceCamelCatalog- Overrides:
transformerJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the transformer name- Returns:
- transformer details in JSon
-
devConsoleJSonSchema
- Overrides:
devConsoleJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog
-
languageModel
- Specified by:
languageModelin interfaceCamelCatalog- Overrides:
languageModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the language name to look up- Returns:
- the requested language or
nullin case it is not available in thisCamelCatalog
-
transformerModel
- Specified by:
transformerModelin interfaceCamelCatalog- Overrides:
transformerModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the transformer name to look up- Returns:
- the requested transformer or
nullin case it is not available in thisCamelCatalog
-
devConsoleModel
- Specified by:
devConsoleModelin interfaceCamelCatalog- Overrides:
devConsoleModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the dev-console name to look up- Returns:
- the requested dev-console or
nullin case it is not available in thisCamelCatalog
-
otherJSonSchema
Description copied from interface:CamelCatalogReturns the other (miscellaneous) information as JSON format.- Specified by:
otherJSonSchemain interfaceCamelCatalog- Overrides:
otherJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the other (miscellaneous) name- Returns:
- other (miscellaneous) details in JSon
-
otherModel
- Specified by:
otherModelin interfaceCamelCatalog- Overrides:
otherModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Parameters:
name- the other name to look up- Returns:
- the requested other or
nullin case it is not available in thisCamelCatalog
-
mainJSonSchema
- Overrides:
mainJSonSchemain classorg.apache.camel.catalog.impl.AbstractCamelCatalog
-
mainModel
public org.apache.camel.tooling.model.MainModel mainModel()- Specified by:
mainModelin interfaceCamelCatalog- Overrides:
mainModelin classorg.apache.camel.catalog.impl.AbstractCamelCatalog- Returns:
- the requested main model or
nullin case it is not available in thisCamelCatalog
-
findModelLabels
Description copied from interface:CamelCatalogFind all the unique label names all the models are using.- Specified by:
findModelLabelsin interfaceCamelCatalog- Returns:
- a set of all the labels.
-
findComponentLabels
Description copied from interface:CamelCatalogFind all the unique label names all the components are using.- Specified by:
findComponentLabelsin interfaceCamelCatalog- Returns:
- a set of all the labels.
-
findDataFormatLabels
Description copied from interface:CamelCatalogFind all the unique label names all the data formats are using.- Specified by:
findDataFormatLabelsin interfaceCamelCatalog- Returns:
- a set of all the labels.
-
findLanguageLabels
Description copied from interface:CamelCatalogFind all the unique label names all the languages are using.- Specified by:
findLanguageLabelsin interfaceCamelCatalog- Returns:
- a set of all the labels.
-
findOtherLabels
Description copied from interface:CamelCatalogFind all the unique label names all the other (miscellaneous) are using.- Specified by:
findOtherLabelsin interfaceCamelCatalog- Returns:
- a set of all the labels.
-
springSchemaAsXml
Description copied from interface:CamelCatalogReturns the Camel Spring XML schema- Specified by:
springSchemaAsXmlin interfaceCamelCatalog- Returns:
- the spring XML schema
-
xmlIoSchemaAsXml
Description copied from interface:CamelCatalogReturns the Camel XML-IO schema- Specified by:
xmlIoSchemaAsXmlin interfaceCamelCatalog- Returns:
- the XML-IO schema
-
mainJsonSchema
Description copied from interface:CamelCatalogReturns the camel-main json schema- Specified by:
mainJsonSchemain interfaceCamelCatalog- Returns:
- the camel-main json schema
-
listComponentsAsJson
Description copied from interface:CamelCatalogLists all the components summary details in JSon- Specified by:
listComponentsAsJsonin interfaceCamelCatalog
-
listDataFormatsAsJson
Description copied from interface:CamelCatalogLists all the data formats summary details in JSon- Specified by:
listDataFormatsAsJsonin interfaceCamelCatalog
-
listLanguagesAsJson
Description copied from interface:CamelCatalogLists all the languages summary details in JSon- Specified by:
listLanguagesAsJsonin interfaceCamelCatalog
-
listTransformersAsJson
Description copied from interface:CamelCatalogLists all the transformers summary details in JSon- Specified by:
listTransformersAsJsonin interfaceCamelCatalog
-
listDevConsolesAsJson
Description copied from interface:CamelCatalogLists all the dev-consoles summary details in JSon- Specified by:
listDevConsolesAsJsonin interfaceCamelCatalog
-
listModelsAsJson
Description copied from interface:CamelCatalogLists all the models (EIPs) summary details in JSon- Specified by:
listModelsAsJsonin interfaceCamelCatalog
-
listOthersAsJson
Description copied from interface:CamelCatalogLists all the others (miscellaneous) summary details in JSon- Specified by:
listOthersAsJsonin interfaceCamelCatalog
-
summaryAsJson
Description copied from interface:CamelCatalogReports a summary what the catalog contains in JSon- Specified by:
summaryAsJsonin interfaceCamelCatalog
-
modelFromMavenGAV
public org.apache.camel.tooling.model.ArtifactModel<?> modelFromMavenGAV(String groupId, String artifactId, String version) Description copied from interface:CamelCatalogLookup the model for the given Maven GAV- Specified by:
modelFromMavenGAVin interfaceCamelCatalog- Parameters:
groupId- maven group idartifactId- maven artifact idversion- maven version (optional)- Returns:
- the requested model or
nullin case it is not available in thisCamelCatalog
-
loadResource
Description copied from interface:CamelCatalogLoad resource from catalog classpath- Specified by:
loadResourcein interfaceCamelCatalog- Parameters:
kind- The resource kind, ex. camel-jbangname- The resource name- Returns:
- An input stream for reading the resource; null if the resource could not be found
-
camelReleases
Description copied from interface:CamelCatalogLoad all Camel releases (core and spring-boot) from catalog- Specified by:
camelReleasesin interfaceCamelCatalog
-
camelQuarkusReleases
Description copied from interface:CamelCatalogLoad all Camel Quarkus releases from catalog- Specified by:
camelQuarkusReleasesin interfaceCamelCatalog
-