You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/08/20 15:31:38 UTC

[camel-quarkus] branch master updated: fix CamelRegistryBuildItem setup

This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new cf4b94c  fix CamelRegistryBuildItem setup
cf4b94c is described below

commit cf4b94cbf53ccbd53b407e5229c757eacc8de72f
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Tue Aug 20 17:31:26 2019 +0200

    fix CamelRegistryBuildItem setup
---
 .../quarkus/core/support/deployment/SupportBuildStep.java    |  8 +++++++-
 .../apache/camel/quarkus/core/support}/SupportRecorder.java  | 12 ++++--------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/integration-tests/core-support/deployment/src/main/java/org/apache/camel/quarkus/core/support/deployment/SupportBuildStep.java b/integration-tests/core-support/deployment/src/main/java/org/apache/camel/quarkus/core/support/deployment/SupportBuildStep.java
index 329bbf7..1020b62 100644
--- a/integration-tests/core-support/deployment/src/main/java/org/apache/camel/quarkus/core/support/deployment/SupportBuildStep.java
+++ b/integration-tests/core-support/deployment/src/main/java/org/apache/camel/quarkus/core/support/deployment/SupportBuildStep.java
@@ -19,12 +19,18 @@ package org.apache.camel.quarkus.core.support.deployment;
 import io.quarkus.deployment.annotations.BuildStep;
 import io.quarkus.deployment.annotations.ExecutionTime;
 import io.quarkus.deployment.annotations.Record;
+import org.apache.camel.component.log.LogComponent;
 import org.apache.camel.quarkus.core.deployment.CamelRegistryBuildItem;
+import org.apache.camel.quarkus.core.support.SupportRecorder;
 
 public class SupportBuildStep {
     @Record(ExecutionTime.STATIC_INIT)
     @BuildStep
     CamelRegistryBuildItem logComponent(SupportRecorder recorder) {
-        return recorder.logComponent();
+        return new CamelRegistryBuildItem(
+            "log",
+            LogComponent.class,
+            recorder.logComponent()
+        );
     }
 }
diff --git a/integration-tests/core-support/deployment/src/main/java/org/apache/camel/quarkus/core/support/deployment/SupportRecorder.java b/integration-tests/core-support/runtime/src/main/java/org/apache/camel/quarkus/core/support/SupportRecorder.java
similarity index 80%
rename from integration-tests/core-support/deployment/src/main/java/org/apache/camel/quarkus/core/support/deployment/SupportRecorder.java
rename to integration-tests/core-support/runtime/src/main/java/org/apache/camel/quarkus/core/support/SupportRecorder.java
index 2340b21..7925f96 100644
--- a/integration-tests/core-support/deployment/src/main/java/org/apache/camel/quarkus/core/support/deployment/SupportRecorder.java
+++ b/integration-tests/core-support/runtime/src/main/java/org/apache/camel/quarkus/core/support/SupportRecorder.java
@@ -14,16 +14,16 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.camel.quarkus.core.support.deployment;
+package org.apache.camel.quarkus.core.support;
 
 import io.quarkus.runtime.annotations.Recorder;
+import org.apache.camel.Component;
 import org.apache.camel.component.log.LogComponent;
-import org.apache.camel.quarkus.core.deployment.CamelRegistryBuildItem;
 import org.apache.camel.support.processor.DefaultExchangeFormatter;
 
 @Recorder
 public class SupportRecorder {
-    CamelRegistryBuildItem logComponent() {
+    public Component logComponent() {
         DefaultExchangeFormatter def = new DefaultExchangeFormatter();
         def.setShowAll(true);
         def.setMultiline(true);
@@ -31,10 +31,6 @@ public class SupportRecorder {
         LogComponent component = new LogComponent();
         component.setExchangeFormatter(def);
 
-        return new CamelRegistryBuildItem(
-            "log",
-            LogComponent.class,
-            component
-        );
+        return component;
     }
 }