This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new b53d8df CAMEL-14671: Make PropertiesFunction part of the PropertiesComponent SPI b53d8df is described below commit b53d8df2e3f13cd4d51cc3e414793bf93b2e34ac Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun Mar 15 15:06:43 2020 +0100 CAMEL-14671: Make PropertiesFunction part of the PropertiesComponent SPI --- .../apache/camel/test/testcontainers/ContainerAwareTestSupport.java | 6 +++--- .../camel/test/testcontainers/ContainerPropertiesFunction.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerAwareTestSupport.java b/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerAwareTestSupport.java index 829915f..225c9b4 100644 --- a/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerAwareTestSupport.java +++ b/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerAwareTestSupport.java @@ -22,7 +22,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.TimeUnit; import org.apache.camel.CamelContext; -import org.apache.camel.component.properties.PropertiesComponent; +import org.apache.camel.spi.PropertiesComponent; import org.apache.camel.test.junit4.CamelTestSupport; import org.testcontainers.containers.GenericContainer; import org.testcontainers.containers.Network; @@ -57,9 +57,9 @@ public class ContainerAwareTestSupport extends CamelTestSupport { @Override protected CamelContext createCamelContext() throws Exception { final CamelContext context = super.createCamelContext(); - final PropertiesComponent pc = (PropertiesComponent) context.getPropertiesComponent(); + final PropertiesComponent pc = context.getPropertiesComponent(); - pc.addFunction(new ContainerPropertiesFunction(containers)); + pc.addPropertiesFunction(new ContainerPropertiesFunction(containers)); return context; } diff --git a/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerPropertiesFunction.java b/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerPropertiesFunction.java index 21f9466..8691be7 100644 --- a/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerPropertiesFunction.java +++ b/components/camel-testcontainers/src/main/java/org/apache/camel/test/testcontainers/ContainerPropertiesFunction.java @@ -18,7 +18,7 @@ package org.apache.camel.test.testcontainers; import java.util.List; -import org.apache.camel.component.properties.PropertiesFunction; +import org.apache.camel.spi.PropertiesFunction; import org.apache.camel.util.ObjectHelper; import org.apache.camel.util.StringHelper; import org.testcontainers.containers.GenericContainer;