Class ComponentScanDefinition

java.lang.Object
org.apache.camel.model.app.ComponentScanDefinition

@Metadata(label="configuration") public class ComponentScanDefinition extends Object

An equivalent of Spring's <context:component-scan> element that can be used to populate underlying bean registry.

With Spring application, the bean registry is provided by Spring itself, but if we want to use Camel without Spring, we have an option to use DefaultRegistry with underlying, supporting bean registries and repositories.

  • Constructor Details

    • ComponentScanDefinition

      public ComponentScanDefinition()
  • Method Details

    • getBasePackage

      public String getBasePackage()
    • setBasePackage

      public void setBasePackage(String basePackage)
      Base package to use for scanning Spring beans.