Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for camel-xml-io #849

Merged
merged 3 commits into from
Mar 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ jobs:
-pl :camel-quarkus-integration-test-core-impl \
-pl :camel-quarkus-integration-test-core-main \
-pl :camel-quarkus-integration-test-core-main-collector \
-pl :camel-quarkus-integration-test-core-main-xml
-pl :camel-quarkus-integration-test-core-main-xml-jaxb \
-pl :camel-quarkus-integration-test-core-main-xml-io \
foundation:
runs-on: ubuntu-latest
needs: build
Expand Down
12 changes: 8 additions & 4 deletions docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Number of Camel data formats: 20 in 16 JAR artifacts (0 deprecated)
== Camel Languages

// languages: START
Number of Camel languages: 10 in 4 JAR artifacts (0 deprecated)
Number of Camel languages: 11 in 5 JAR artifacts (0 deprecated)

[width="100%",cols="4,1,5",options="header"]
|===
Expand All @@ -318,14 +318,16 @@ Number of Camel languages: 10 in 4 JAR artifacts (0 deprecated)

| link:https://camel.apache.org/components/latest/tokenize-language.html[Tokenize] (camel-quarkus-core) | 0.2.0 | To use Camel message body or header with a tokenizer in Camel expressions or predicates.

| link:https://camel.apache.org/components/latest/xtokenize-language.html[XML Tokenize] (camel-quarkus-xml-jaxp) | 1.0.0-M5 | To use Camel message body or header with a XML tokenizer in Camel expressions or predicates.

| link:https://camel.apache.org/components/latest/xpath-language.html[XPath] (camel-quarkus-xpath) | 1.0.0-M4 | To use XPath (XML) in Camel expressions or predicates.
|===
// languages: END

== Miscellaneous Extensions

// others: START
Number of miscellaneous extensions: 9 in 9 JAR artifacts (0 deprecated)
Number of miscellaneous extensions: 10 in 10 JAR artifacts (0 deprecated)

[width="100%",cols="4,1,5",options="header"]
|===
Expand All @@ -335,8 +337,6 @@ Number of miscellaneous extensions: 9 in 9 JAR artifacts (0 deprecated)

| (camel-quarkus-core-cloud) | 0.2.0 | The Camel Quarkus core cloud module

| (camel-quarkus-core-xml) | 0.3.0 | Includes implementations of Java Architecture for XML Binding (JAXB) and Java API for XML Processing (JAXP)

| (camel-quarkus-endpointdsl) | 1.0.0-M3 | camel-quarkus-endpointdsl

| (camel-quarkus-hystrix) | 1.0.0-M1 | Circuit Breaker EIP using Netflix Hystrix
Expand All @@ -348,5 +348,9 @@ Number of miscellaneous extensions: 9 in 9 JAR artifacts (0 deprecated)
| xref:extensions/opentracing.adoc[camel-quarkus-opentracing] | 0.3.0 | Distributed tracing using OpenTracing

| (camel-quarkus-reactive-executor) | 0.3.0 | Reactive Executor for camel-core using Vert.x

| (camel-quarkus-xml-io) | 1.0.0-M5 | Includes implementations of Camel's fast and lightweight XML parse

| (camel-quarkus-xml-jaxb) | 1.0.0-M5 | Includes implementations of Java Architecture for XML Binding (JAXB)
|===
// others: END
10 changes: 5 additions & 5 deletions examples/file-split-log-xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
</parent>

<modelVersion>4.0.0</modelVersion>



<artifactId>camel-quarkus-examples-file-log-xml</artifactId>
<name>Camel Quarkus :: Examples :: File To Log XML DSL</name>
<description>Camel Quarkus Example :: File To Log XML DSL</description>



<properties>
<!-- mvnd, a.k.a. Maven Daemon: https://github.com/gnodet/mvnd -->
Expand All @@ -42,7 +42,7 @@
<!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
<!-- Please update rule whenever you change the dependencies of this module by running -->
<!-- mvn process-resources -Pformat from the root directory -->
<mvnd.builder.rule>camel-quarkus-core-xml-deployment,camel-quarkus-file-deployment,camel-quarkus-log-deployment,camel-quarkus-support-policy-deployment,camel-quarkus-timer-deployment</mvnd.builder.rule>
<mvnd.builder.rule>camel-quarkus-xml-jaxb-deployment,camel-quarkus-file-deployment,camel-quarkus-log-deployment,camel-quarkus-support-policy-deployment,camel-quarkus-timer-deployment</mvnd.builder.rule>
</properties>

<dependencies>
Expand All @@ -56,7 +56,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml</artifactId>
<artifactId>camel-quarkus-xml-jaxb</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down
4 changes: 2 additions & 2 deletions examples/timer-log-xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
<!-- Please update rule whenever you change the dependencies of this module by running -->
<!-- mvn process-resources -Pformat from the root directory -->
<mvnd.builder.rule>camel-quarkus-core-xml-deployment,camel-quarkus-log-deployment,camel-quarkus-support-policy-deployment,camel-quarkus-timer-deployment</mvnd.builder.rule>
<mvnd.builder.rule>camel-quarkus-xml-io-deployment,camel-quarkus-log-deployment,camel-quarkus-support-policy-deployment,camel-quarkus-timer-deployment</mvnd.builder.rule>
</properties>

<dependencies>
Expand All @@ -52,7 +52,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml</artifactId>
<artifactId>camel-quarkus-xml-io</artifactId>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions examples/timer-log/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
<!-- Please update rule whenever you change the dependencies of this module by running -->
<!-- mvn process-resources -Pformat from the root directory -->
<mvnd.builder.rule>camel-quarkus-core-xml-deployment,camel-quarkus-log-deployment,camel-quarkus-support-policy-deployment,camel-quarkus-timer-deployment</mvnd.builder.rule>
<mvnd.builder.rule>camel-quarkus-xml-jaxb-deployment,camel-quarkus-log-deployment,camel-quarkus-support-policy-deployment,camel-quarkus-timer-deployment</mvnd.builder.rule>
</properties>

<dependencies>
Expand All @@ -52,7 +52,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml</artifactId>
<artifactId>camel-quarkus-xml-jaxb</artifactId>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class DisabledModelJAXBContextFactory implements ModelJAXBContextFactory

@Override
public JAXBContext newJAXBContext() throws JAXBException {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
public class DisabledModelToXMLDumper implements ModelToXMLDumper {
@Override
public String dumpModelAsXml(CamelContext context, NamedNode definition) throws Exception {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb");
}

@Override
public String dumpModelAsXml(CamelContext context, NamedNode definition, boolean resolvePlaceholders,
boolean resolveDelegateEndpoints) throws Exception {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb or camel-quarkus-xml-io");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public DisabledPredicateValidatorReifier(CamelContext camelContext, ValidatorDef

@Override
protected Validator doCreateValidator() {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb or camel-quarkus-xml-io");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public DisabledValidateReifier(RouteContext routeContext, ProcessorDefinition<?>

@Override
public Processor createProcessor() throws Exception {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb or camel-quarkus-xml-io");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
public class DisabledXMLRoutesDefinitionLoader implements XMLRoutesDefinitionLoader {
@Override
public Object loadRoutesDefinition(CamelContext context, InputStream inputStream) throws Exception {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb or camel-quarkus-xml-io");
}

@Override
public Object loadRestsDefinition(CamelContext context, InputStream inputStream) throws Exception {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb or camel-quarkus-xml-io");
}

@Override
public <T extends NamedNode> T createModelFromXml(CamelContext context, String xml, Class<T> type) throws Exception {
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-core-xml");
throw new UnsupportedOperationException("Please add a dependency to camel-quarkus-xml-jaxb or camel-quarkus-xml-io");
}
}
2 changes: 1 addition & 1 deletion extensions/jackson/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml-deployment</artifactId>
<artifactId>camel-quarkus-xml-jaxb-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/jackson/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml</artifactId>
<artifactId>camel-quarkus-xml-jaxb</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
4 changes: 3 additions & 1 deletion extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
<!-- common/shared extensions -->
<module>core</module>
<module>core-cloud</module>
<module>core-xml</module>
<module>http-common</module>
<module>reactive-executor</module>
<module>xml-io</module>
<module>xml-jaxb</module>
<module>xml-jaxp</module>

<!-- extensions a..z; do not remove this comment, it is important when sorting via mvn process-resources -Pformat -->
<module>ahc</module>
Expand Down
12 changes: 8 additions & 4 deletions extensions/readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Number of Camel data formats: 20 in 16 JAR artifacts (0 deprecated)
== Camel Languages

// languages: START
Number of Camel languages: 10 in 4 JAR artifacts (0 deprecated)
Number of Camel languages: 11 in 5 JAR artifacts (0 deprecated)

[width="100%",cols="4,1,5",options="header"]
|===
Expand All @@ -307,6 +307,8 @@ Number of Camel languages: 10 in 4 JAR artifacts (0 deprecated)

| link:https://camel.apache.org/components/latest/tokenize-language.html[Tokenize] (camel-quarkus-core) | 0.2.0 | To use Camel message body or header with a tokenizer in Camel expressions or predicates.

| link:https://camel.apache.org/components/latest/xtokenize-language.html[XML Tokenize] (camel-quarkus-xml-jaxp) | 1.0.0-M5 | To use Camel message body or header with a XML tokenizer in Camel expressions or predicates.

| link:https://camel.apache.org/components/latest/xpath-language.html[XPath] (camel-quarkus-xpath) | 1.0.0-M4 | To use XPath (XML) in Camel expressions or predicates.
|===
// languages: END
Expand All @@ -315,7 +317,7 @@ Number of Camel languages: 10 in 4 JAR artifacts (0 deprecated)
== Miscellaneous Extensions

// others: START
Number of miscellaneous extensions: 9 in 9 JAR artifacts (0 deprecated)
Number of miscellaneous extensions: 10 in 10 JAR artifacts (0 deprecated)

[width="100%",cols="4,1,5",options="header"]
|===
Expand All @@ -325,8 +327,6 @@ Number of miscellaneous extensions: 9 in 9 JAR artifacts (0 deprecated)

| (camel-quarkus-core-cloud) | 0.2.0 | The Camel Quarkus core cloud module

| (camel-quarkus-core-xml) | 0.3.0 | Includes implementations of Java Architecture for XML Binding (JAXB) and Java API for XML Processing (JAXP)

| (camel-quarkus-endpointdsl) | 1.0.0-M3 | camel-quarkus-endpointdsl

| (camel-quarkus-hystrix) | 1.0.0-M1 | Circuit Breaker EIP using Netflix Hystrix
Expand All @@ -338,6 +338,10 @@ Number of miscellaneous extensions: 9 in 9 JAR artifacts (0 deprecated)
| xref:extensions/opentracing.adoc[camel-quarkus-opentracing] | 0.3.0 | Distributed tracing using OpenTracing

| (camel-quarkus-reactive-executor) | 0.3.0 | Reactive Executor for camel-core using Vert.x

| (camel-quarkus-xml-io) | 1.0.0-M5 | Includes implementations of Camel's fast and lightweight XML parse

| (camel-quarkus-xml-jaxb) | 1.0.0-M5 | Includes implementations of Java Architecture for XML Binding (JAXB)
|===
// others: END

Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,28 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import org.apache.camel.component.salesforce.internal.dto.LoginError;
import org.apache.camel.component.salesforce.internal.dto.LoginToken;
import org.apache.camel.component.salesforce.internal.dto.NotifyForFieldsEnum;
import org.apache.camel.component.salesforce.internal.dto.NotifyForOperationsEnum;
import org.apache.camel.component.salesforce.internal.dto.PushTopic;
import org.apache.camel.component.salesforce.internal.dto.QueryRecordsPushTopic;
import org.apache.camel.component.salesforce.internal.dto.RestChoices;
import org.apache.camel.component.salesforce.internal.dto.RestErrors;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.ProtocolHandlers;

class SalesforceProcessor {
private static final List<Class<?>> SALESFORCE_REFLECTIVE_CLASSES = Arrays.asList(
HttpClient.class,
LoginToken.class,
LoginError.class,
NotifyForFieldsEnum.class,
NotifyForOperationsEnum.class,
PushTopic.class,
QueryRecordsPushTopic.class,
RestChoices.class,
RestErrors.class,
ProtocolHandlers.class);

private static final String FEATURE = "camel-salesforce";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>camel-quarkus-support-jackson-dataformat-xml-deployment</artifactId>
<name>Camel Quarkus :: Support Jackson Dataformat XML :: Deployment</name>
<name>Camel Quarkus :: Support :: Jackson Dataformat XML :: Deployment</name>

<dependencyManagement>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion extensions/support/jackson-dataformat-xml/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>camel-quarkus-support-jackson-dataformat-xml</artifactId>
<name>Camel Quarkus :: Support Jackson Dataformat XML :: Runtime</name>
<name>Camel Quarkus :: Support :: Jackson Dataformat XML :: Runtime</name>

<dependencyManagement>
<dependencies>
Expand Down
4 changes: 0 additions & 4 deletions extensions/support/xml/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jaxb-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-support-xml</artifactId>
Expand Down
9 changes: 0 additions & 9 deletions extensions/support/xml/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jaxb</artifactId>
</dependency>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-xml-jaxp</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion extensions/tagsoup/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml-deployment</artifactId>
<artifactId>camel-quarkus-xml-jaxb-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion extensions/tagsoup/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-xml</artifactId>
<artifactId>camel-quarkus-xml-jaxb</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down