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 2020/01/04 09:35:25 UTC
[camel-quarkus] branch master updated (93591c3 -> eb86b49)
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.
from 93591c3 Move MicroProfile metrics camel context configuration to static init
new 03333d2 chore: fix doc
new 520cb25 chore: replace deprecated capability definition with dedicated capability build item
new 2fcf055 Simplify service binding with Camel*BeanBuildItem for trivial services
new 5b194c8 chore: add missing @Override annotations
new c185c1f chore: disable javadoc formatting
new eb86b49 chore: fix warning
The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../component/xml/deployment/XmlProcessor.java | 8 ++++-
.../quarkus/core/deployment/BuildProcessor.java | 41 ++++++++++++++++------
.../core/deployment/CamelBeanBuildItem.java | 23 ++++++++++--
.../deployment/CamelRoutesCollectorBuildItem.java | 2 +-
.../core/deployment/CamelRuntimeBeanBuildItem.java | 23 ++++++++++--
.../quarkus/core/deployment/CamelSupport.java | 1 +
.../camel/quarkus/core/deployment/Feature.java | 8 ++++-
.../apache/camel/quarkus/core/CamelRecorder.java | 9 +++++
.../deployment/MicroProfileHealthProcessor.java | 18 ++--------
.../runtime/CamelMicroProfileHealthRecorder.java | 27 --------------
tooling/eclipse-formatter-config.xml | 1 +
11 files changed, 100 insertions(+), 61 deletions(-)
delete mode 100644 extensions/microprofile-health/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/health/runtime/CamelMicroProfileHealthRecorder.java
[camel-quarkus] 04/06: chore: add missing @Override annotations
Posted by lb...@apache.org.
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
commit 5b194c8329ae1e46fa7bb03ee23264abb0cd977a
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Fri Jan 3 16:36:50 2020 +0100
chore: add missing @Override annotations
---
.../org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java | 2 ++
.../apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java | 2 ++
2 files changed, 4 insertions(+)
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
index 51c2fd4..87df391 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
@@ -59,10 +59,12 @@ public final class CamelBeanBuildItem extends MultiBuildItem implements CamelBea
this.value = value;
}
+ @Override
public String getName() {
return name;
}
+ @Override
public String getType() {
return type;
}
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
index af9386d..f678bd8 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
@@ -59,10 +59,12 @@ public final class CamelRuntimeBeanBuildItem extends MultiBuildItem implements C
this.value = value;
}
+ @Override
public String getName() {
return name;
}
+ @Override
public String getType() {
return type;
}
[camel-quarkus] 03/06: Simplify service binding with
Camel*BeanBuildItem for trivial services
Posted by lb...@apache.org.
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
commit 2fcf055490528ce4638f52d3a2f36faf14a78aad
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Fri Jan 3 16:34:19 2020 +0100
Simplify service binding with Camel*BeanBuildItem for trivial services
---
.../quarkus/core/deployment/BuildProcessor.java | 41 ++++++++++++++++------
.../core/deployment/CamelBeanBuildItem.java | 21 +++++++++--
.../core/deployment/CamelRuntimeBeanBuildItem.java | 21 +++++++++--
.../apache/camel/quarkus/core/CamelRecorder.java | 9 +++++
.../deployment/MicroProfileHealthProcessor.java | 18 ++--------
.../runtime/CamelMicroProfileHealthRecorder.java | 27 --------------
6 files changed, 79 insertions(+), 58 deletions(-)
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/BuildProcessor.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/BuildProcessor.java
index 8fd37d3..17161e8 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/BuildProcessor.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/BuildProcessor.java
@@ -128,6 +128,7 @@ class BuildProcessor {
/*
* Discover {@link TypeConverterLoader}.
*/
+ @SuppressWarnings("unchecked")
@Record(ExecutionTime.STATIC_INIT)
@BuildStep
CamelTypeConverterRegistryBuildItem typeConverterRegistry(
@@ -158,7 +159,7 @@ class BuildProcessor {
.map(String::trim)
.filter(l -> !l.isEmpty())
.filter(l -> !l.startsWith("#"))
- .map(l -> recorderContext.<TypeConverterLoader> newInstance(l))
+ .map(l -> (Class<? extends TypeConverterLoader>) recorderContext.classProxy(l))
.forEach(loader -> recorder.addTypeConverterLoader(typeConverterRegistry, loader));
} catch (IOException e) {
throw new RuntimeException("Error discovering TypeConverterLoader", e);
@@ -217,11 +218,20 @@ class BuildProcessor {
.filter(item -> !containerBeans.getBeans().contains(item))
.forEach(item -> {
LOGGER.debug("Binding bean with name: {}, type {}", item.getName(), item.getType());
- recorder.bind(
- registry,
- item.getName(),
- recorderContext.classProxy(item.getType()),
- item.getValue());
+ if (item.getValue() != null) {
+ recorder.bind(
+ registry,
+ item.getName(),
+ recorderContext.classProxy(item.getType()),
+ item.getValue());
+ } else {
+ // the instance of the service will be instantiated by the recorder, this avoid
+ // creating a recorder for trivial services.
+ recorder.bind(
+ registry,
+ item.getName(),
+ recorderContext.classProxy(item.getType()));
+ }
});
return new CamelRegistryBuildItem(registry);
@@ -284,11 +294,20 @@ class BuildProcessor {
.forEach(item -> {
LOGGER.debug("Binding runtime bean with name: {}, type {}", item.getName(), item.getType());
- recorder.bind(
- registry.getRegistry(),
- item.getName(),
- recorderContext.classProxy(item.getType()),
- item.getValue());
+ if (item.getValue() != null) {
+ recorder.bind(
+ registry.getRegistry(),
+ item.getName(),
+ recorderContext.classProxy(item.getType()),
+ item.getValue());
+ } else {
+ // the instance of the service will be instantiated by the recorder, this avoid
+ // creating a recorder for trivial services.
+ recorder.bind(
+ registry.getRegistry(),
+ item.getName(),
+ recorderContext.classProxy(item.getType()));
+ }
});
return new CamelRuntimeRegistryBuildItem(registry.getRegistry());
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
index 64ba7de..51c2fd4 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
@@ -18,6 +18,8 @@ package org.apache.camel.quarkus.core.deployment;
import java.util.Objects;
+import javax.annotation.Nullable;
+
import io.quarkus.builder.item.MultiBuildItem;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.runtime.RuntimeValue;
@@ -37,10 +39,24 @@ public final class CamelBeanBuildItem extends MultiBuildItem implements CamelBea
private final String type;
private final RuntimeValue<?> value;
- public CamelBeanBuildItem(String name, String type, RuntimeValue<?> value) {
+ /**
+ * @param name the name of the bean
+ * @param type the Java type of the bean
+ */
+ public CamelBeanBuildItem(String name, String type) {
+ this(name, type, null);
+ }
+
+ /**
+ * @param name the name of the bean
+ * @param type the Java type of the bean
+ * @param value the value to be bound to the registry, if <code>null</code> a new instance will be create
+ * by the {@link org.apache.camel.quarkus.core.CamelMainRecorder}
+ */
+ public CamelBeanBuildItem(String name, String type, @Nullable RuntimeValue<?> value) {
this.name = Objects.requireNonNull(name);
this.type = Objects.requireNonNull(type);
- this.value = Objects.requireNonNull(value);
+ this.value = value;
}
public String getName() {
@@ -51,6 +67,7 @@ public final class CamelBeanBuildItem extends MultiBuildItem implements CamelBea
return type;
}
+ @Nullable
public RuntimeValue<?> getValue() {
return value;
}
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
index ab8b11a..af9386d 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
@@ -18,6 +18,8 @@ package org.apache.camel.quarkus.core.deployment;
import java.util.Objects;
+import javax.annotation.Nullable;
+
import io.quarkus.builder.item.MultiBuildItem;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.runtime.RuntimeValue;
@@ -37,10 +39,24 @@ public final class CamelRuntimeBeanBuildItem extends MultiBuildItem implements C
private final String type;
private final RuntimeValue<?> value;
- public CamelRuntimeBeanBuildItem(String name, String type, RuntimeValue<?> value) {
+ /**
+ * @param name the name of the bean
+ * @param type the Java type of the bean
+ */
+ public CamelRuntimeBeanBuildItem(String name, String type) {
+ this(name, type, null);
+ }
+
+ /**
+ * @param name the name of the bean
+ * @param type the Java type of the bean
+ * @param value the value to be bound to the registry, if <code>null</code> a new instance will be create
+ * by the {@link org.apache.camel.quarkus.core.CamelMainRecorder}
+ */
+ public CamelRuntimeBeanBuildItem(String name, String type, @Nullable RuntimeValue<?> value) {
this.name = Objects.requireNonNull(name);
this.type = Objects.requireNonNull(type);
- this.value = Objects.requireNonNull(value);
+ this.value = value;
}
public String getName() {
@@ -51,6 +67,7 @@ public final class CamelRuntimeBeanBuildItem extends MultiBuildItem implements C
return type;
}
+ @Nullable
public RuntimeValue<?> getValue() {
return value;
}
diff --git a/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelRecorder.java b/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelRecorder.java
index 56e6304..7865f03 100644
--- a/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelRecorder.java
+++ b/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelRecorder.java
@@ -44,6 +44,15 @@ public class CamelRecorder {
loader.getValue().load(registry.getValue());
}
+ public void addTypeConverterLoader(RuntimeValue<TypeConverterRegistry> registry,
+ Class<? extends TypeConverterLoader> loader) {
+ try {
+ loader.newInstance().load(registry.getValue());
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+
@SuppressWarnings("unchecked")
public RuntimeValue<CamelContext> createContext(
RuntimeValue<Registry> registry,
diff --git a/extensions/microprofile-health/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/health/deployment/MicroProfileHealthProcessor.java b/extensions/microprofile-health/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/health/deployment/MicroProfileHealthProcessor.java
index 4f8220e..8b04405 100644
--- a/extensions/microprofile-health/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/health/deployment/MicroProfileHealthProcessor.java
+++ b/extensions/microprofile-health/deployment/src/main/java/org/apache/camel/quarkus/component/microprofile/health/deployment/MicroProfileHealthProcessor.java
@@ -25,18 +25,13 @@ import javax.enterprise.inject.Vetoed;
import io.quarkus.arc.deployment.AnnotationsTransformerBuildItem;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.annotations.ExecutionTime;
-import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.recording.RecorderContext;
-
import org.apache.camel.health.HealthCheck;
import org.apache.camel.health.HealthCheckRepository;
import org.apache.camel.impl.health.DefaultHealthCheckRegistry;
import org.apache.camel.microprofile.health.AbstractCamelMicroProfileHealthCheck;
import org.apache.camel.quarkus.component.microprofile.health.runtime.CamelMicroProfileHealthConfig;
-import org.apache.camel.quarkus.component.microprofile.health.runtime.CamelMicroProfileHealthRecorder;
import org.apache.camel.quarkus.core.deployment.CamelBeanBuildItem;
import org.apache.camel.quarkus.core.deployment.CamelSupport;
import org.eclipse.microprofile.health.Liveness;
@@ -63,12 +58,9 @@ class MicroProfileHealthProcessor {
return new FeatureBuildItem(FEATURE);
}
- @Record(ExecutionTime.STATIC_INIT)
@BuildStep
List<CamelBeanBuildItem> camelHealthDiscovery(
CombinedIndexBuildItem combinedIndex,
- RecorderContext recorderContext,
- CamelMicroProfileHealthRecorder recorder,
CamelMicroProfileHealthConfig config) {
List<CamelBeanBuildItem> buildItems = new ArrayList<>();
@@ -83,10 +75,7 @@ class MicroProfileHealthProcessor {
.filter(CamelSupport::isConcrete)
.filter(CamelSupport::isPublic)
.filter(ClassInfo::hasNoArgsConstructor)
- .map(classInfo -> new CamelBeanBuildItem(
- classInfo.simpleName(),
- CAMEL_HEALTH_CHECK_DOTNAME.toString(),
- recorderContext.newInstance(classInfo.toString())))
+ .map(classInfo -> new CamelBeanBuildItem(classInfo.simpleName(), classInfo.name().toString()))
.forEach(buildItems::add);
// Create CamelBeanBuildItem to bind instances of HealthCheckRepository to the camel registry
@@ -95,10 +84,7 @@ class MicroProfileHealthProcessor {
.filter(CamelSupport::isPublic)
.filter(ClassInfo::hasNoArgsConstructor)
.filter(classInfo -> !classInfo.simpleName().equals(DefaultHealthCheckRegistry.class.getSimpleName()))
- .map(classInfo -> new CamelBeanBuildItem(
- classInfo.simpleName(),
- CAMEL_HEALTH_CHECK_REPOSITORY_DOTNAME.toString(),
- recorderContext.newInstance(classInfo.toString())))
+ .map(classInfo -> new CamelBeanBuildItem(classInfo.simpleName(), classInfo.name().toString()))
.forEach(buildItems::add);
}
diff --git a/extensions/microprofile-health/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/health/runtime/CamelMicroProfileHealthRecorder.java b/extensions/microprofile-health/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/health/runtime/CamelMicroProfileHealthRecorder.java
deleted file mode 100644
index 8f5f079..0000000
--- a/extensions/microprofile-health/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/health/runtime/CamelMicroProfileHealthRecorder.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.quarkus.component.microprofile.health.runtime;
-
-import io.quarkus.runtime.RuntimeValue;
-import io.quarkus.runtime.annotations.Recorder;
-
-import org.apache.camel.health.HealthCheck;
-import org.apache.camel.health.HealthCheckRepository;
-
-@Recorder
-public class CamelMicroProfileHealthRecorder {
-}
[camel-quarkus] 02/06: chore: replace deprecated capability
definition with dedicated capability build item
Posted by lb...@apache.org.
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
commit 520cb2598c7a1c41edb02748d8980f3d98e0ee10
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Fri Jan 3 16:28:52 2020 +0100
chore: replace deprecated capability definition with dedicated capability build item
---
.../camel/quarkus/component/xml/deployment/XmlProcessor.java | 8 +++++++-
.../java/org/apache/camel/quarkus/core/deployment/Feature.java | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/extensions/core-xml/deployment/src/main/java/org/apache/camel/quarkus/component/xml/deployment/XmlProcessor.java b/extensions/core-xml/deployment/src/main/java/org/apache/camel/quarkus/component/xml/deployment/XmlProcessor.java
index ec99180..07329c8 100644
--- a/extensions/core-xml/deployment/src/main/java/org/apache/camel/quarkus/component/xml/deployment/XmlProcessor.java
+++ b/extensions/core-xml/deployment/src/main/java/org/apache/camel/quarkus/component/xml/deployment/XmlProcessor.java
@@ -19,6 +19,7 @@ package org.apache.camel.quarkus.component.xml.deployment;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
+import io.quarkus.deployment.builditem.CapabilityBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.jaxb.deployment.JaxbFileRootBuildItem;
import org.apache.camel.quarkus.component.xml.XmlRecorder;
@@ -36,12 +37,17 @@ class XmlProcessor {
return new JaxbFileRootBuildItem(CamelSupport.CAMEL_ROOT_PACKAGE_DIRECTORY);
}
- @BuildStep(providesCapabilities = CamelCapabilities.XML)
+ @BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}
@BuildStep
+ CapabilityBuildItem capability() {
+ return new CapabilityBuildItem(CamelCapabilities.XML);
+ }
+
+ @BuildStep
@Record(value = ExecutionTime.STATIC_INIT, optional = true)
CamelModelJAXBContextFactoryBuildItem contextFactory(XmlRecorder recorder) {
return new CamelModelJAXBContextFactoryBuildItem(recorder.newContextFactory());
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/Feature.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/Feature.java
index 49ab988..400c0a1 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/Feature.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/Feature.java
@@ -17,14 +17,20 @@
package org.apache.camel.quarkus.core.deployment;
import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.CapabilityBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import org.apache.camel.quarkus.support.common.CamelCapabilities;
class Feature {
private static final String FEATURE = "camel-core";
- @BuildStep(providesCapabilities = CamelCapabilities.CORE)
+ @BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}
+
+ @BuildStep
+ CapabilityBuildItem capability() {
+ return new CapabilityBuildItem(CamelCapabilities.CORE);
+ }
}
[camel-quarkus] 05/06: chore: disable javadoc formatting
Posted by lb...@apache.org.
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
commit c185c1f1c62f782dae298d75c75c799473e40c4b
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Fri Jan 3 16:42:49 2020 +0100
chore: disable javadoc formatting
---
.../org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java | 4 ++--
.../camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java | 4 ++--
tooling/eclipse-formatter-config.xml | 1 +
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
index 87df391..9274674 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelBeanBuildItem.java
@@ -48,8 +48,8 @@ public final class CamelBeanBuildItem extends MultiBuildItem implements CamelBea
}
/**
- * @param name the name of the bean
- * @param type the Java type of the bean
+ * @param name the name of the bean
+ * @param type the Java type of the bean
* @param value the value to be bound to the registry, if <code>null</code> a new instance will be create
* by the {@link org.apache.camel.quarkus.core.CamelMainRecorder}
*/
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
index f678bd8..230413b 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRuntimeBeanBuildItem.java
@@ -48,8 +48,8 @@ public final class CamelRuntimeBeanBuildItem extends MultiBuildItem implements C
}
/**
- * @param name the name of the bean
- * @param type the Java type of the bean
+ * @param name the name of the bean
+ * @param type the Java type of the bean
* @param value the value to be bound to the registry, if <code>null</code> a new instance will be create
* by the {@link org.apache.camel.quarkus.core.CamelMainRecorder}
*/
diff --git a/tooling/eclipse-formatter-config.xml b/tooling/eclipse-formatter-config.xml
index 35b6889..03a7e20 100644
--- a/tooling/eclipse-formatter-config.xml
+++ b/tooling/eclipse-formatter-config.xml
@@ -267,5 +267,6 @@
<setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="CHECKSTYLE:ON"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="false"/>
+ <setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="false"/>
</profile>
</profiles>
[camel-quarkus] 01/06: chore: fix doc
Posted by lb...@apache.org.
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
commit 03333d29aa99482d35f18a2de842fd10e3461b8f
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Fri Jan 3 15:25:29 2020 +0100
chore: fix doc
---
.../camel/quarkus/core/deployment/CamelRoutesCollectorBuildItem.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRoutesCollectorBuildItem.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRoutesCollectorBuildItem.java
index df39049..349c06a 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRoutesCollectorBuildItem.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelRoutesCollectorBuildItem.java
@@ -21,7 +21,7 @@ import io.quarkus.runtime.RuntimeValue;
import org.apache.camel.main.RoutesCollector;
/**
- * Holds the {@link RoutesCollector} {@link RuntimeValue}. *
+ * Holds the {@link RoutesCollector} {@link RuntimeValue}.
*/
public final class CamelRoutesCollectorBuildItem extends SimpleBuildItem {
private final RuntimeValue<RoutesCollector> value;
[camel-quarkus] 06/06: chore: fix warning
Posted by lb...@apache.org.
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
commit eb86b49713b7f32bef154b38123a705e7fc2a103
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Fri Jan 3 16:44:15 2020 +0100
chore: fix warning
---
.../main/java/org/apache/camel/quarkus/core/deployment/CamelSupport.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelSupport.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelSupport.java
index 3c4847c..b6d276a 100644
--- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelSupport.java
+++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelSupport.java
@@ -117,6 +117,7 @@ public final class CamelSupport {
return answer;
}
+ @SafeVarargs
public static <T> Set<T> setOf(T... items) {
return Stream.of(items).collect(Collectors.toCollection(HashSet::new));
}