Skip to content

Commit

Permalink
Upgrade to Camel 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Oct 1, 2020
1 parent 1e172d8 commit d8128f5
Show file tree
Hide file tree
Showing 29 changed files with 159 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Store and retrieve blobs from Azure Storage Blob Service using SDK v12.

== What's inside

* https://camel.apache.org/components/latest/azure-storage-blob-component.html[Azure Storage Blob Service component], URI syntax: `azure-storage-blob:containerName`
* https://camel.apache.org/components/latest/azure-storage-blob-component.html[Azure Storage Blob Service component], URI syntax: `azure-storage-blob:accountName/containerName`

Please refer to the above link for usage and configuration details.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The azure-storage-queue component is used for storing and retrieving the message

== What's inside

* https://camel.apache.org/components/latest/azure-storage-queue-component.html[Azure Storage Queue Service component], URI syntax: `azure-storage-queue:queueName`
* https://camel.apache.org/components/latest/azure-storage-queue-component.html[Azure Storage Queue Service component], URI syntax: `azure-storage-queue:accountName/queueName`

Please refer to the above link for usage and configuration details.

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/reference/extensions/bindy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
:cq-artifact-id: camel-quarkus-bindy
:cq-native-supported: true
:cq-status: Stable
:cq-description: Marshal and unmarshal Java beans from and to flat payloads (such as CSV, delimited, fixed length formats, or FIX messages).
:cq-description: Marshal and unmarshal between POJOs and Comma separated values (CSV) format using Camel Bindy Marshal and unmarshal between POJOs and fixed field length format using Camel Bindy Marshal and unmarshal between POJOs and key-value pair (KVP) format using Camel Bindy
:cq-deprecated: false
:cq-jvm-since: 1.0.0
:cq-native-since: 1.0.0

[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0##

Marshal and unmarshal Java beans from and to flat payloads (such as CSV, delimited, fixed length formats, or FIX messages).
Marshal and unmarshal between POJOs and Comma separated values (CSV) format using Camel Bindy Marshal and unmarshal between POJOs and fixed field length format using Camel Bindy Marshal and unmarshal between POJOs and key-value pair (KVP) format using Camel Bindy

== What's inside

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/reference/extensions/snakeyaml.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
:cq-artifact-id: camel-quarkus-snakeyaml
:cq-native-supported: true
:cq-status: Stable
:cq-description: Marshal and unmarshal Java objects to and from YAML.
:cq-description: Marshal and unmarshal Java objects to and from YAML using SnakeYAML
:cq-deprecated: false
:cq-jvm-since: 0.4.0
:cq-native-since: 0.4.0

[.badges]
[.badge-key]##JVM since##[.badge-supported]##0.4.0## [.badge-key]##Native since##[.badge-supported]##0.4.0##

Marshal and unmarshal Java objects to and from YAML.
Marshal and unmarshal Java objects to and from YAML using SnakeYAML

== What's inside

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/partials/reference/components/atmos.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: n/a
:cq-camel-part-name: atmos
:cq-camel-part-title: Atmos
:cq-camel-part-description: Integract with EMC's ViPR object data services using the Atmos Client.
:cq-camel-part-description: Integrate with EMC's ViPR object data services using the Atmos Client.
:cq-extension-page-title: Atmos
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Empty partial for a Camel bit unsupported by Camel Quarkus to avoid warnings when this file is included from a Camel page
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 1.1.0
:cq-camel-part-name: vertx-http
:cq-camel-part-title: Vert.x HTTP Client
:cq-camel-part-description: Camel HTTP client support with Vert.x
:cq-camel-part-description: Send requests to external HTTP servers using Vert.x
:cq-extension-page-title: Vert.x HTTP Client
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 1.1.0
:cq-camel-part-name: vertx-websocket
:cq-camel-part-title: Vert.x WebSocket
:cq-camel-part-description: Camel WebSocket support with Vert.x
:cq-camel-part-description: Expose WebSocket endpoints and connect to remote WebSocket servers using Vert.x
:cq-extension-page-title: Vert.x WebSocket
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 1.0.0
:cq-camel-part-name: bindy-kvp
:cq-camel-part-title: Bindy Key Value Pair
:cq-camel-part-description: Marshal and unmarshal Java beans from and to flat payloads (such as CSV, delimited, fixed length formats, or FIX messages).
:cq-camel-part-description: Marshal and unmarshal between POJOs and key-value pair (KVP) format using Camel Bindy
:cq-extension-page-title: Bindy
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: n/a
:cq-camel-part-name: json-fastjson
:cq-camel-part-title: JSON Fastjson
:cq-camel-part-description: Marshal POJOs to JSON and back.
:cq-camel-part-description: Marshal POJOs to JSON and back using Fastjson
:cq-extension-page-title: JSON Fastjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 1.0.0
:cq-camel-part-name: json-gson
:cq-camel-part-title: JSON Gson
:cq-camel-part-description: Marshal POJOs to JSON and back.
:cq-camel-part-description: Marshal POJOs to JSON and back using Gson
:cq-extension-page-title: Gson
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 0.3.0
:cq-camel-part-name: json-jackson
:cq-camel-part-title: JSON Jackson
:cq-camel-part-description: Marshal POJOs to JSON and back.
:cq-camel-part-description: Marshal POJOs to JSON and back using Jackson
:cq-extension-page-title: Jackson
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 1.0.0
:cq-camel-part-name: json-johnzon
:cq-camel-part-title: JSON Johnzon
:cq-camel-part-description: Marshal POJOs to JSON and back.
:cq-camel-part-description: Marshal POJOs to JSON and back using Johnzon
:cq-extension-page-title: Johnzon
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 1.0.0
:cq-camel-part-name: json-xstream
:cq-camel-part-title: JSON XStream
:cq-camel-part-description: Marshal POJOs to JSON and back.
:cq-camel-part-description: Marshal POJOs to JSON and back using XStream
:cq-extension-page-title: XStream
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:cq-native-since: 0.4.0
:cq-camel-part-name: yaml-snakeyaml
:cq-camel-part-title: YAML SnakeYAML
:cq-camel-part-description: Marshal and unmarshal Java objects to and from YAML.
:cq-camel-part-description: Marshal and unmarshal Java objects to and from YAML using SnakeYAML
:cq-extension-page-title: SnakeYAML
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ void coreServicePatterns(BuildProducer<CamelServicePatternBuildItem> services) {
"META-INF/services/org/apache/camel/configurer/*",
"META-INF/services/org/apache/camel/language/*",
"META-INF/services/org/apache/camel/dataformat/*",
"META-INF/services/org/apache/camel/send-dynamic/*"));
"META-INF/services/org/apache/camel/send-dynamic/*",
"META-INF/services/org/apache/camel/urifactory/*"));
}

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public abstract class BaseModel implements Model {
private final List<RouteDefinition> routeDefinitions = new ArrayList<>();
private final List<RouteTemplateDefinition> routeTemplateDefinitions = new ArrayList<>();
private final List<RestDefinition> restDefinitions = new ArrayList<>();
private final Map<String, RouteTemplateDefinition.Converter> routeTemplateConverters = new ConcurrentHashMap<>();
private Map<String, DataFormatDefinition> dataFormats = new HashMap<>();
private List<TransformerDefinition> transformers = new ArrayList<>();
private List<ValidatorDefinition> validators = new ArrayList<>();
Expand Down Expand Up @@ -153,6 +154,11 @@ public void removeRouteTemplateDefinition(RouteTemplateDefinition routeTemplateD
routeTemplateDefinitions.remove(routeTemplateDefinition);
}

@Override
public void addRouteTemplateDefinitionConverter(String templateIdPattern, RouteTemplateDefinition.Converter converter) {
routeTemplateConverters.put(templateIdPattern, converter);
}

@Override
public String addRouteFromTemplate(String routeId, String routeTemplateId, Map<String, Object> parameters)
throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
import org.apache.camel.impl.engine.DefaultTracer;
import org.apache.camel.impl.engine.DefaultTransformerRegistry;
import org.apache.camel.impl.engine.DefaultUnitOfWorkFactory;
import org.apache.camel.impl.engine.DefaultUriFactoryResolver;
import org.apache.camel.impl.engine.DefaultValidatorRegistry;
import org.apache.camel.impl.engine.EndpointKey;
import org.apache.camel.impl.engine.RouteService;
Expand Down Expand Up @@ -138,6 +139,7 @@
import org.apache.camel.spi.TransformerRegistry;
import org.apache.camel.spi.TypeConverterRegistry;
import org.apache.camel.spi.UnitOfWorkFactory;
import org.apache.camel.spi.UriFactoryResolver;
import org.apache.camel.spi.UuidGenerator;
import org.apache.camel.spi.Validator;
import org.apache.camel.spi.ValidatorRegistry;
Expand Down Expand Up @@ -437,6 +439,11 @@ protected ConfigurerResolver createConfigurerResolver() {
return new DefaultConfigurerResolver();
}

@Override
protected UriFactoryResolver createUriFactoryResolver() {
return new DefaultUriFactoryResolver();
}

@Override
protected HealthCheckRegistry createHealthCheckRegistry() {
return new BaseServiceResolver<>(HealthCheckRegistry.FACTORY, HealthCheckRegistry.class)
Expand Down Expand Up @@ -643,6 +650,11 @@ public void removeRouteTemplateDefinition(RouteTemplateDefinition routeTemplateD
model.removeRouteTemplateDefinition(routeTemplateDefinition);
}

@Override
public void addRouteTemplateDefinitionConverter(String templateIdPattern, RouteTemplateDefinition.Converter converter) {
model.addRouteTemplateDefinitionConverter(templateIdPattern, converter);
}

@Override
public List<RestDefinition> getRestDefinitions() {
return model.getRestDefinitions();
Expand Down
4 changes: 4 additions & 0 deletions extensions-jvm/jbpm/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jaxb-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jbpm</artifactId>
Expand Down
12 changes: 8 additions & 4 deletions extensions-jvm/jbpm/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,24 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jaxb</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jbpm</artifactId>
<exclusions>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.xml.bind</groupId>
<artifactId>jboss-jaxb-api_2.3_spec</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
11 changes: 11 additions & 0 deletions extensions-jvm/workday/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,18 @@
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-workday</artifactId>
<exclusions>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.xml.bind</groupId>
<artifactId>jboss-jaxb-api_2.3_spec</artifactId>
</dependency>

</dependencies>

<build>
Expand Down
6 changes: 6 additions & 0 deletions extensions/jaxb/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jaxb</artifactId>
<exclusions>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
@SuppressWarnings("unchecked")
public class QuteComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

private static final Map<String, Object> ALL_OPTIONS;
static {
Map<String, Object> map = new CaseInsensitiveMap();
map.put("allowTemplateFromHeader", boolean.class);
map.put("lazyStartProducer", boolean.class);
map.put("basicPropertyBinding", boolean.class);
map.put("quteEngine", io.quarkus.qute.Engine.class);
ALL_OPTIONS = map;
}

@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
QuteComponent target = (QuteComponent) obj;
Expand All @@ -33,12 +43,7 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj

@Override
public Map<String, Object> getAllOptions(Object target) {
Map<String, Object> answer = new CaseInsensitiveMap();
answer.put("allowTemplateFromHeader", boolean.class);
answer.put("basicPropertyBinding", boolean.class);
answer.put("lazyStartProducer", boolean.class);
answer.put("quteEngine", io.quarkus.qute.Engine.class);
return answer;
return ALL_OPTIONS;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
@SuppressWarnings("unchecked")
public class QuteEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

private static final Map<String, Object> ALL_OPTIONS;
static {
Map<String, Object> map = new CaseInsensitiveMap();
map.put("resourceUri", java.lang.String.class);
map.put("allowContextMapAll", boolean.class);
map.put("allowTemplateFromHeader", boolean.class);
map.put("contentCache", boolean.class);
map.put("encoding", java.lang.String.class);
map.put("lazyStartProducer", boolean.class);
map.put("basicPropertyBinding", boolean.class);
map.put("synchronous", boolean.class);
ALL_OPTIONS = map;
}

@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
QuteEndpoint target = (QuteEndpoint) obj;
Expand All @@ -37,15 +51,7 @@ public boolean configure(CamelContext camelContext, Object obj, String name, Obj

@Override
public Map<String, Object> getAllOptions(Object target) {
Map<String, Object> answer = new CaseInsensitiveMap();
answer.put("allowContextMapAll", boolean.class);
answer.put("allowTemplateFromHeader", boolean.class);
answer.put("basicPropertyBinding", boolean.class);
answer.put("contentCache", boolean.class);
answer.put("encoding", java.lang.String.class);
answer.put("lazyStartProducer", boolean.class);
answer.put("synchronous", boolean.class);
return answer;
return ALL_OPTIONS;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.qute;

import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import org.apache.camel.spi.EndpointUriFactory;

/**
* Generated by camel build tools - do NOT edit this file!
*/
public class QuteEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {

private static final String BASE = ":resourceUri";

private static final Set<String> PROPERTY_NAMES;
static {
Set<String> set = new HashSet<>(8);
set.add("resourceUri");
set.add("allowContextMapAll");
set.add("allowTemplateFromHeader");
set.add("contentCache");
set.add("encoding");
set.add("lazyStartProducer");
set.add("basicPropertyBinding");
set.add("synchronous");
PROPERTY_NAMES = set;
}

@Override
public boolean isEnabled(String scheme) {
return "qute".equals(scheme);
}

@Override
public String buildUri(String scheme, Map<String, Object> properties) throws URISyntaxException {
String syntax = scheme + BASE;
String uri = syntax;

Map<String, Object> copy = new HashMap<>(properties);

uri = buildPathParameter(syntax, uri, "resourceUri", null, true, copy);
uri = buildQueryParameters(uri, copy);
return uri;
}

@Override
public Set<String> propertyNames() {
return PROPERTY_NAMES;
}

@Override
public boolean isLenientProperties() {
return false;
}
}

0 comments on commit d8128f5

Please sign in to comment.