@Configurer public class MainConfigurationProperties extends DefaultConfigurationProperties<MainConfigurationProperties>
| Constructor and Description |
|---|
MainConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(Object configuration)
Add an additional configuration object to the known list of configurations objects.
|
void |
addConfigurationClass(Class<?>... configuration)
Add an additional configuration class to the known list of configurations classes.
|
void |
addRoutesBuilder(Class<?>... routeBuilder)
Add an additional
RoutesBuilder class to the known list of builders. |
void |
addRoutesBuilder(org.apache.camel.RoutesBuilder routeBuilder)
Add an additional
RoutesBuilder object to the known list of builders. |
FaultToleranceConfigurationProperties |
faultTolerance()
To configure Circuit Breaker EIP with MicroProfile Fault Tolerance
|
String |
getConfigurationClasses() |
List<Object> |
getConfigurations() |
int |
getDurationHitExitCode() |
String |
getPackageScanRouteBuilders() |
String |
getRoutesBuilderClasses() |
List<org.apache.camel.RoutesBuilder> |
getRoutesBuilders() |
HealthConfigurationProperties |
health()
To configure Health Check
|
HystrixConfigurationProperties |
hystrix()
Deprecated.
|
boolean |
isAutoConfigurationEnabled() |
boolean |
isAutoConfigurationEnvironmentVariablesEnabled() |
boolean |
isAutoConfigurationFailFast() |
boolean |
isAutoConfigurationLogSummary() |
boolean |
isAutowireComponentProperties() |
boolean |
isAutowireComponentPropertiesAllowPrivateSetter() |
boolean |
isAutowireComponentPropertiesDeep() |
boolean |
isAutowireComponentPropertiesNonNullOnly() |
LraConfigurationProperties |
lra()
To configure Saga LRA
|
Resilience4jConfigurationProperties |
resilience4j()
To configure Circuit Breaker EIP with Resilience4j
|
RestConfigurationProperties |
rest()
To configure Rest DSL
|
void |
setAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Whether auto configuration of components, dataformats, languages is enabled or not.
|
void |
setAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
Whether auto configuration should include OS environment variables as well.
|
void |
setAutoConfigurationFailFast(boolean autoConfigurationFailFast)
Whether auto configuration should fail fast when configuring one ore more properties fails for whatever reason
such as a invalid property name, etc.
|
void |
setAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
Whether auto configuration should log a summary with the configured properties.
|
void |
setAutowireComponentProperties(boolean autowireComponentProperties)
Whether autowiring components with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
void |
setAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
Whether autowiring components allows to use private setter method when setting the value.
|
void |
setAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
Whether autowiring components (with deep nesting by attempting to walk as deep down the object graph by creating new empty objects on the way if needed)
with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
void |
setAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
Whether to only autowire if the property has no default value or has not been configured explicit.
|
void |
setConfigurationClasses(String configurations)
Sets classes names that will be used to configure the camel context as example by providing custom beans
through
BindToRegistry annotation. |
void |
setConfigurations(List<Object> configurations)
Sets the configuration objects used to configure the camel context.
|
void |
setDurationHitExitCode(int durationHitExitCode)
Sets the exit code for the application if duration was hit
|
void |
setPackageScanRouteBuilders(String packageScanRouteBuilders)
Sets package names for scanning for
RouteBuilder classes as candidates to be included. |
void |
setRoutesBuilderClasses(String builders)
Sets classes names that implement
RoutesBuilder. |
void |
setRoutesBuilders(List<org.apache.camel.RoutesBuilder> routesBuilders)
Sets the RoutesBuilder instances.
|
ThreadPoolConfigurationProperties |
threadPool()
To configure thread pools
|
MainConfigurationProperties |
withAdditionalConfiguration(Object configuration)
Add an additional configuration object to the known list of configurations objects.
|
MainConfigurationProperties |
withAdditionalConfigurationClasses(Class... configuration)
Add an additional configuration class to the known list of configurations classes.
|
MainConfigurationProperties |
withAdditionalRoutesBuilder(Class... builders)
Add an additional
RoutesBuilder class to the known list of builders. |
MainConfigurationProperties |
withAdditionalRoutesBuilder(org.apache.camel.RoutesBuilder builder)
Add an additional
RoutesBuilder object to the known list of builders. |
MainConfigurationProperties |
withAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Whether auto configuration of components/dataformats/languages is enabled or not.
|
MainConfigurationProperties |
withAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
Whether auto configuration should include OS environment variables as well.
|
MainConfigurationProperties |
withAutoConfigurationFailFast(boolean autoConfigurationFailFast)
Whether auto configuration should fail fast when configuring one ore more properties fails for whatever reason
such as a invalid property name, etc.
|
MainConfigurationProperties |
withAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
Whether auto configuration should log a summary with the configured properties.
|
MainConfigurationProperties |
withAutowireComponentProperties(boolean autowireComponentProperties)
Whether autowiring components with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
MainConfigurationProperties |
withAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
Whether autowiring components (with deep nesting by attempting to walk as deep down the object graph by creating new empty objects on the way if needed)
with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
MainConfigurationProperties |
withAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
Whether autowiring components (with deep nesting by attempting to walk as deep down the object graph by creating new empty objects on the way if needed)
with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
MainConfigurationProperties |
withAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
Whether to only autowire if the property has no default value or has not been configured explicit.
|
MainConfigurationProperties |
withConfigurationClasses(String configurations)
Sets classes names that will be used to configure the camel context as example by providing custom beans
through
BindToRegistry annotation. |
MainConfigurationProperties |
withConfigurations(List<Object> configurations)
Sets the configuration objects used to configure the camel context.
|
MainConfigurationProperties |
withDurationHitExitCode(int durationHitExitCode)
Sets the exit code for the application if duration was hit
|
MainConfigurationProperties |
withPackageScanRouteBuilders(String packageScanRouteBuilders)
Sets package names for scanning for
RouteBuilder classes as candidates to be included. |
MainConfigurationProperties |
withRoutesBuilderClasses(String builders)
Sets classes names that implement
RoutesBuilder. |
MainConfigurationProperties |
withRoutesBuilders(List<org.apache.camel.RoutesBuilder> builders)
Sets the RoutesBuilder instances.
|
getBeanIntrospectionLoggingLevel, getConsumerTemplateCacheSize, getDurationMaxIdleSeconds, getDurationMaxMessages, getDurationMaxSeconds, getFileConfigurations, getJavaRoutesExcludePattern, getJavaRoutesIncludePattern, getJmxManagementNamePattern, getJmxManagementStatisticsLevel, getLogDebugMaxChars, getMdcLoggingKeysPattern, getName, getProducerTemplateCacheSize, getRouteControllerBackOffDelay, getRouteControllerBackOffMaxAttempts, getRouteControllerBackOffMaxDelay, getRouteControllerBackOffMaxElapsedTime, getRouteControllerBackOffMultiplier, getRouteControllerExcludeRoutes, getRouteControllerIncludeRoutes, getRouteControllerInitialDelay, getRouteControllerRouteStartupLoggingLevel, getRouteControllerThreadPoolSize, getRouteFilterExcludePattern, getRouteFilterIncludePattern, getShutdownTimeout, getStreamCachingBufferSize, getStreamCachingSpoolCipher, getStreamCachingSpoolDirectory, getStreamCachingSpoolThreshold, getStreamCachingSpoolUsedHeapMemoryLimit, getStreamCachingSpoolUsedHeapMemoryThreshold, getThreadNamePattern, getTracingPattern, getXmlRests, getXmlRoutes, isAllowUseOriginalMessage, isAutoStartup, isBacklogTracing, isBeanIntrospectionExtendedStatistics, isCaseInsensitiveHeaders, isEndpointBasicPropertyBinding, isEndpointBridgeErrorHandler, isEndpointLazyStartProducer, isEndpointRuntimeStatisticsEnabled, isInflightRepositoryBrowseEnabled, isJmxEnabled, isLightweight, isLoadTypeConverters, isLogExhaustedMessageBody, isLogMask, isMessageHistory, isRouteControllerSuperviseEnabled, isRouteControllerUnhealthyOnExhausted, isRoutesCollectorEnabled, isShutdownLogInflightExchangesOnTimeout, isShutdownNowOnTimeout, isShutdownRoutesInReverseOrder, isShutdownSuppressLoggingOnTimeout, isStreamCachingAnySpoolRules, isStreamCachingEnabled, isStreamCachingRemoveSpoolDirectoryWhenStopping, isStreamCachingStatisticsEnabled, isTracing, isUseBreadcrumb, isUseDataType, isUseMdcLogging, setAllowUseOriginalMessage, setAutoStartup, setBacklogTracing, setBeanIntrospectionExtendedStatistics, setBeanIntrospectionLoggingLevel, setCaseInsensitiveHeaders, setConsumerTemplateCacheSize, setDurationMaxIdleSeconds, setDurationMaxMessages, setDurationMaxSeconds, setEndpointBasicPropertyBinding, setEndpointBridgeErrorHandler, setEndpointLazyStartProducer, setEndpointRuntimeStatisticsEnabled, setFileConfigurations, setInflightRepositoryBrowseEnabled, setJavaRoutesExcludePattern, setJavaRoutesIncludePattern, setJmxEnabled, setJmxManagementNamePattern, setJmxManagementStatisticsLevel, setLightweight, setLoadTypeConverters, setLogDebugMaxChars, setLogExhaustedMessageBody, setLogMask, setMdcLoggingKeysPattern, setMessageHistory, setName, setProducerTemplateCacheSize, setRouteControllerBackOffDelay, setRouteControllerBackOffMaxAttempts, setRouteControllerBackOffMaxDelay, setRouteControllerBackOffMaxElapsedTime, setRouteControllerBackOffMultiplier, setRouteControllerExcludeRoutes, setRouteControllerIncludeRoutes, setRouteControllerInitialDelay, setRouteControllerRouteStartupLoggingLevel, setRouteControllerSuperviseEnabled, setRouteControllerThreadPoolSize, setRouteControllerUnhealthyOnExhausted, setRouteFilterExcludePattern, setRouteFilterIncludePattern, setRoutesCollectorEnabled, setShutdownLogInflightExchangesOnTimeout, setShutdownNowOnTimeout, setShutdownRoutesInReverseOrder, setShutdownSuppressLoggingOnTimeout, setShutdownTimeout, setStreamCachingAnySpoolRules, setStreamCachingBufferSize, setStreamCachingEnabled, setStreamCachingRemoveSpoolDirectoryWhenStopping, setStreamCachingSpoolCipher, setStreamCachingSpoolDirectory, setStreamCachingSpoolThreshold, setStreamCachingSpoolUsedHeapMemoryLimit, setStreamCachingSpoolUsedHeapMemoryThreshold, setStreamCachingStatisticsEnabled, setThreadNamePattern, setTracing, setTracingPattern, setUseBreadcrumb, setUseDataType, setUseMdcLogging, setXmlRests, setXmlRoutes, withAllowUseOriginalMessage, withAutoStartup, withBacklogTracing, withBeanIntrospectionExtendedStatistics, withBeanIntrospectionLoggingLevel, withCaseInsensitiveHeaders, withConsumerTemplateCacheSize, withDurationMaxIdleSeconds, withDurationMaxMessages, withDurationMaxSeconds, withEndpointBasicPropertyBinding, withEndpointBridgeErrorHandler, withEndpointLazyStartProducer, withEndpointRuntimeStatisticsEnabled, withFileConfigurations, withInflightRepositoryBrowseEnabled, withJavaRoutesExcludePattern, withJavaRoutesIncludePattern, withJmxEnabled, withJmxManagementNamePattern, withJmxManagementStatisticsLevel, withLightweight, withLoadTypeConverters, withLogDebugMaxChars, withLogExhaustedMessageBody, withLogMask, withMdcLoggingKeysPattern, withMessageHistory, withName, withProducerTemplateCacheSize, withRouteControllerBackOffDelay, withRouteControllerBackOffMaxAttempts, withRouteControllerBackOffMaxDelay, withRouteControllerBackOffMaxElapsedTime, withRouteControllerBackOffMultiplier, withRouteControllerInitialDelay, withRouteControllerSuperviseEnabled, withRouteControllerThreadPoolSize, withRouteControllerUnhealthyOnExhausted, withRouteFilterExcludePattern, withRouteFilterIncludePattern, withRoutesCollectorEnabled, withRouteStartupLoggingLevel, withShutdownLogInflightExchangesOnTimeout, withShutdownNowOnTimeout, withShutdownRoutesInReverseOrder, withShutdownSuppressLoggingOnTimeout, withShutdownTimeout, withStreamCachingAnySpoolRules, withStreamCachingBufferSize, withStreamCachingEnabled, withStreamCachingRemoveSpoolDirectoryWhenStopping, withStreamCachingSpoolCipher, withStreamCachingSpoolDirectory, withStreamCachingSpoolThreshold, withStreamCachingSpoolUsedHeapMemoryLimit, withStreamCachingSpoolUsedHeapMemoryThreshold, withStreamCachingStatisticsEnabled, withThreadNamePattern, withTracing, withTracingPattern, withUseBreadcrumb, withUseDataType, withUseMdcLogging, withXmlRests, withXmlRoutespublic HealthConfigurationProperties health()
public LraConfigurationProperties lra()
public ThreadPoolConfigurationProperties threadPool()
@Deprecated public HystrixConfigurationProperties hystrix()
public Resilience4jConfigurationProperties resilience4j()
public FaultToleranceConfigurationProperties faultTolerance()
public RestConfigurationProperties rest()
public boolean isAutoConfigurationEnabled()
public void setAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Registry.bind(String, Object) method
or by using the BindToRegistry annotation style.
This option is default enabled.public boolean isAutoConfigurationEnvironmentVariablesEnabled()
public void setAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
public boolean isAutoConfigurationFailFast()
public void setAutoConfigurationFailFast(boolean autoConfigurationFailFast)
public boolean isAutoConfigurationLogSummary()
public void setAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
public boolean isAutowireComponentProperties()
public void setAutowireComponentProperties(boolean autowireComponentProperties)
public boolean isAutowireComponentPropertiesDeep()
public void setAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
public boolean isAutowireComponentPropertiesNonNullOnly()
public void setAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
public boolean isAutowireComponentPropertiesAllowPrivateSetter()
public void setAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
public String getPackageScanRouteBuilders()
public void setPackageScanRouteBuilders(String packageScanRouteBuilders)
RouteBuilder classes as candidates to be included.
If you are using Spring Boot then its instead recommended to use Spring Boots component scanning and annotate your route builder
classes with `@Component`. In other words only use this for Camel Main in standalone mode.public int getDurationHitExitCode()
public void setDurationHitExitCode(int durationHitExitCode)
public String getConfigurationClasses()
public void setConfigurationClasses(String configurations)
BindToRegistry annotation.public void addConfigurationClass(Class<?>... configuration)
public void addConfiguration(Object configuration)
public void setConfigurations(List<Object> configurations)
public String getRoutesBuilderClasses()
public void setRoutesBuilderClasses(String builders)
RoutesBuilder.public List<org.apache.camel.RoutesBuilder> getRoutesBuilders()
public void setRoutesBuilders(List<org.apache.camel.RoutesBuilder> routesBuilders)
public void addRoutesBuilder(org.apache.camel.RoutesBuilder routeBuilder)
RoutesBuilder object to the known list of builders.public void addRoutesBuilder(Class<?>... routeBuilder)
RoutesBuilder class to the known list of builders.public MainConfigurationProperties withAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Registry.bind(String, Object) method
or by using the BindToRegistry annotation style.
This option is default enabled.public MainConfigurationProperties withAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
public MainConfigurationProperties withAutoConfigurationFailFast(boolean autoConfigurationFailFast)
public MainConfigurationProperties withAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
public MainConfigurationProperties withAutowireComponentProperties(boolean autowireComponentProperties)
public MainConfigurationProperties withAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
public MainConfigurationProperties withAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
public MainConfigurationProperties withAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
public MainConfigurationProperties withDurationHitExitCode(int durationHitExitCode)
public MainConfigurationProperties withPackageScanRouteBuilders(String packageScanRouteBuilders)
RouteBuilder classes as candidates to be included.
If you are using Spring Boot then its instead recommended to use Spring Boots component scanning and annotate your route builder
classes with `@Component`. In other words only use this for Camel Main in standalone mode.public MainConfigurationProperties withConfigurationClasses(String configurations)
BindToRegistry annotation.public MainConfigurationProperties withAdditionalConfigurationClasses(Class... configuration)
public MainConfigurationProperties withAdditionalConfiguration(Object configuration)
public MainConfigurationProperties withConfigurations(List<Object> configurations)
public MainConfigurationProperties withRoutesBuilderClasses(String builders)
RoutesBuilder.public MainConfigurationProperties withRoutesBuilders(List<org.apache.camel.RoutesBuilder> builders)
public MainConfigurationProperties withAdditionalRoutesBuilder(org.apache.camel.RoutesBuilder builder)
RoutesBuilder object to the known list of builders.public MainConfigurationProperties withAdditionalRoutesBuilder(Class... builders)
RoutesBuilder class to the known list of builders.Apache Camel