Class ProfileConfigurer

java.lang.Object
org.apache.camel.main.ProfileConfigurer

public class ProfileConfigurer extends Object
Configure Camel Main with the chosen profile. This is for Camel CLI and Standalone Camel, not Spring Boot or Quarkus; as they have their own profile concept.
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
  • Constructor Details

    • ProfileConfigurer

      public ProfileConfigurer()
  • Method Details

    • configureMain

      public static void configureMain(org.apache.camel.CamelContext camelContext, String profile, MainConfigurationProperties config, Properties autoConfigured)
      Configures camel-main to run in given profile
      Parameters:
      camelContext - the camel context
      profile - the profile
      config - the main configuration
      autoConfigured - properties that were explicitly configured by the user (may be null)
    • configureCommon

      public static void configureCommon(org.apache.camel.CamelContext camelContext, String profile, DefaultConfigurationProperties<?> config, Properties autoConfigured)
      Configures camel in general (standalone, quarkus, spring-boot etc) to run in given profile
      Parameters:
      camelContext - the camel context
      profile - the profile
      config - the core configuration
      autoConfigured - properties that were explicitly configured by the user (may be null)