Package org.apache.camel.main
Class ProfileConfigurer
java.lang.Object
org.apache.camel.main.ProfileConfigurer
Configure Camel Main with the chosen profile.
This is for Camel JBang and Standalone Camel, not Spring Boot or Quarkus; as they have their own profile concept.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureCommon(org.apache.camel.CamelContext camelContext, String profile, DefaultConfigurationProperties<?> config) Configures camel in general (standalone, quarkus, spring-boot etc) to run in given profilestatic voidconfigureMain(org.apache.camel.CamelContext camelContext, String profile, MainConfigurationProperties config) Configures camel-main to run in given profile
-
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) Configures camel-main to run in given profile- Parameters:
camelContext- the camel contextprofile- the profileconfig- the main configuration
-
configureCommon
public static void configureCommon(org.apache.camel.CamelContext camelContext, String profile, DefaultConfigurationProperties<?> config) Configures camel in general (standalone, quarkus, spring-boot etc) to run in given profile- Parameters:
camelContext- the camel contextprofile- the profileconfig- the core configuration
-