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 0e0d0b7 Upgrade quarkus to v0.19.0 #60 0e0d0b7 is described below commit 0e0d0b793dac58ccc948a5ee892334ba17f9bb37 Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Wed Jul 10 16:55:38 2019 +0200 Upgrade quarkus to v0.19.0 #60 --- .../quarkus/core/deployment/CamelInitProcessor.java | 18 +++++++++--------- .../runtime/{CamelTemplate.java => CamelRecorder.java} | 13 ++++++------- pom.xml | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelInitProcessor.java b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelInitProcessor.java index 4d1c288..8d37035 100644 --- a/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelInitProcessor.java +++ b/extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelInitProcessor.java @@ -35,8 +35,8 @@ import org.apache.camel.builder.AdviceWithRouteBuilder; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.quarkus.core.runtime.CamelConfig; import org.apache.camel.quarkus.core.runtime.CamelProducers; +import org.apache.camel.quarkus.core.runtime.CamelRecorder; import org.apache.camel.quarkus.core.runtime.CamelRuntime; -import org.apache.camel.quarkus.core.runtime.CamelTemplate; import org.apache.camel.quarkus.core.runtime.CamelConfig.BuildTime; import org.apache.camel.quarkus.core.runtime.support.RuntimeRegistry; import org.eclipse.microprofile.config.Config; @@ -70,7 +70,7 @@ class CamelInitProcessor { @Record(ExecutionTime.STATIC_INIT) @BuildStep(applicationArchiveMarkers = { CamelSupport.CAMEL_SERVICE_BASE_PATH, CamelSupport.CAMEL_ROOT_PACKAGE_DIRECTORY }) - CamelRuntimeBuildItem createInitTask(RecorderContext recorderContext, CamelTemplate template, + CamelRuntimeBuildItem createInitTask(RecorderContext recorderContext, CamelRecorder recorder, BuildProducer<RuntimeBeanBuildItem> runtimeBeans) { Properties properties = new Properties(); Config configProvider = ConfigProvider.getConfig(); @@ -93,7 +93,7 @@ class CamelInitProcessor { recorderContext.newInstance(type.getName())); }); - RuntimeValue<CamelRuntime> camelRuntime = template.create(registry, properties, builders); + RuntimeValue<CamelRuntime> camelRuntime = recorder.create(registry, properties, builders); runtimeBeans .produce(RuntimeBeanBuildItem.builder(CamelRuntime.class).setRuntimeValue(camelRuntime).build()); @@ -106,11 +106,11 @@ class CamelInitProcessor { AdditionalBeanBuildItem createCamelProducers( RecorderContext recorderContext, CamelRuntimeBuildItem runtime, - CamelTemplate template, + CamelRecorder recorder, BuildProducer<BeanContainerListenerBuildItem> listeners) { listeners - .produce(new BeanContainerListenerBuildItem(template.initRuntimeInjection(runtime.getRuntime()))); + .produce(new BeanContainerListenerBuildItem(recorder.initRuntimeInjection(runtime.getRuntime()))); return AdditionalBeanBuildItem.unremovableOf(CamelProducers.class); } @@ -120,21 +120,21 @@ class CamelInitProcessor { void createInitTask( BeanContainerBuildItem beanContainerBuildItem, CamelRuntimeBuildItem runtime, - CamelTemplate template) throws Exception { + CamelRecorder recorder) throws Exception { - template.init(beanContainerBuildItem.getValue(), runtime.getRuntime(), buildTimeConfig); + recorder.init(beanContainerBuildItem.getValue(), runtime.getRuntime(), buildTimeConfig); } @Record(ExecutionTime.RUNTIME_INIT) @BuildStep(applicationArchiveMarkers = { CamelSupport.CAMEL_SERVICE_BASE_PATH, CamelSupport.CAMEL_ROOT_PACKAGE_DIRECTORY }) void createRuntimeInitTask( - CamelTemplate template, + CamelRecorder recorder, CamelRuntimeBuildItem runtime, ShutdownContextBuildItem shutdown, CamelConfig.Runtime runtimeConfig) throws Exception { - template.start(shutdown, runtime.getRuntime(), runtimeConfig); + recorder.start(shutdown, runtime.getRuntime(), runtimeConfig); } protected Stream<String> getBuildTimeRouteBuilderClasses() { diff --git a/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/runtime/CamelTemplate.java b/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/runtime/CamelRecorder.java similarity index 97% rename from extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/runtime/CamelTemplate.java rename to extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/runtime/CamelRecorder.java index 5c67314..7a26440 100644 --- a/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/runtime/CamelTemplate.java +++ b/extensions/core/runtime/src/main/java/org/apache/camel/quarkus/core/runtime/CamelRecorder.java @@ -20,18 +20,17 @@ import java.util.List; import java.util.Properties; import java.util.stream.Collectors; -import org.apache.camel.RoutesBuilder; -import org.apache.camel.quarkus.core.runtime.support.FastCamelRuntime; -import org.apache.camel.spi.Registry; - import io.quarkus.arc.runtime.BeanContainer; import io.quarkus.arc.runtime.BeanContainerListener; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.ShutdownContext; -import io.quarkus.runtime.annotations.Template; +import io.quarkus.runtime.annotations.Recorder; +import org.apache.camel.RoutesBuilder; +import org.apache.camel.quarkus.core.runtime.support.FastCamelRuntime; +import org.apache.camel.spi.Registry; -@Template -public class CamelTemplate { +@Recorder +public class CamelRecorder { public RuntimeValue<CamelRuntime> create( Registry registry, diff --git a/pom.xml b/pom.xml index ea281b4..360283a 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,7 @@ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <camel.version>3.0.0-M2</camel.version> - <quarkus.version>0.18.0</quarkus.version> + <quarkus.version>0.19.0</quarkus.version> <version.compiler.plugin>3.8.0</version.compiler.plugin> <maven.compiler.target>1.8</maven.compiler.target>