feat(core): default error handler
authorPasquale Congiusti <pasquale.congiusti@gmail.com>
Tue, 13 Apr 2021 10:45:48 +0000 (12:45 +0200)
committerLuca Burgazzoli <lburgazzoli@users.noreply.github.com>
Tue, 13 Apr 2021 15:27:31 +0000 (17:27 +0200)
commit36a11797d1a0c51f27928c2067b9f7cb430b05c5
treea676ac6621da252abab2e7d9ac5da287f7b44f78
parent3e6058205c4647a143591fd79a99626696c43200
feat(core): default error handler

* Introduced a new SourceType, errorHandler, that can be used as a source for spotting a default error handler that will be used in those routes that don't specify any
* Forced the sources sorting in order to load errorHandler first, sources and templates
* Added a check to make sure only one error handler is provided
camel-k-core/api/src/main/java/org/apache/camel/k/SourceType.java
camel-k-core/support/src/main/java/org/apache/camel/k/listener/GlobalErrorHandlerConfigurer.java [deleted file]
camel-k-core/support/src/main/java/org/apache/camel/k/listener/SourcesConfigurer.java
camel-k-core/support/src/main/java/org/apache/camel/k/support/SourcesSupport.java
camel-k-core/support/src/main/resources/META-INF/services/org.apache.camel.k.Runtime$Listener
camel-k-core/support/src/test/java/org/apache/camel/k/listener/SourceConfigurerTest.java [new file with mode: 0644]
camel-k-core/support/src/test/java/org/apache/camel/k/support/GlobalErrorHandlerConfigurerTest.java [deleted file]