Interface ComponentNameResolver


public interface ComponentNameResolver
Discovers the names of all Component implementations available on the classpath at runtime.

The default implementation reads META-INF/services/org/apache/camel/component/ resource entries to enumerate registered component names without instantiating them. This list is used by Camel tooling features such as auto-completion in the Camel JBang CLI and the catalog to answer questions like "which components are installed?" without triggering lazy component loading.

Since:
3.2
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveNames(CamelContext camelContext)
    Discovers which components are available on the classpath.
  • Method Details

    • resolveNames

      Set<String> resolveNames(CamelContext camelContext)
      Discovers which components are available on the classpath.
      Parameters:
      camelContext - the camel context
      Returns:
      the component names on the classpath