Skip to content

Commit

Permalink
fix in native
Browse files Browse the repository at this point in the history
fixes KaotoIO#617

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Apr 7, 2023
1 parent dd1649f commit ec10c36
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.HashMap;
import java.util.Map;

@JsonPropertyOrder({CSimple.EXPRESSION_LABEL, CSimple.ID_LABEL, CSimple.RESULT_TYPE_LABEL, CSimple.TRIM_LABEL})
@RegisterForReflection
public class CSimple {
public static final String EXPRESSION_LABEL = "expression";
public static final String ID_LABEL = "id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
import io.kaoto.backend.model.deployment.kamelet.step.EIPStep;
import io.kaoto.backend.model.parameter.Parameter;
import io.kaoto.backend.model.step.Step;
import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.Map;

@JsonPropertyOrder({"name", "constant", "simple", "jq", "jsonpath", "expression"})
@RegisterForReflection
public class Expression extends EIPStep {
public static final String CONSTANT_LABEL = KameletRepresenter.CONSTANT;
public static final String SIMPLE_LABEL = KameletRepresenter.SIMPLE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.HashMap;
import java.util.Map;

@JsonPropertyOrder({Groovy.EXPRESSION_LABEL, Groovy.ID_LABEL, Groovy.RESULT_TYPE_LABEL, Groovy.TRIM_LABEL})
@RegisterForReflection
public class Groovy {
public static final String EXPRESSION_LABEL = "expression";
public static final String ID_LABEL = "id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.HashMap;
import java.util.Map;

Expand All @@ -11,6 +13,7 @@
Javascript.ID_LABEL,
Javascript.RESULT_TYPE_LABEL,
Javascript.TRIM_LABEL})
@RegisterForReflection
public class Javascript {
public static final String EXPRESSION_LABEL = "expression";
public static final String ID_LABEL = "id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.HashMap;
import java.util.Map;

@JsonPropertyOrder({Jq.EXPRESSION_LABEL, Jq.ID_LABEL, Jq.RESULT_TYPE_LABEL, Jq.TRIM_LABEL})
@RegisterForReflection
public class Jq {
public static final String EXPRESSION_LABEL = "expression";
public static final String ID_LABEL = "id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.LinkedHashMap;
import java.util.Map;

@JsonPropertyOrder({JsonPath.EXPRESSION_LABEL, JsonPath.ID_LABEL, JsonPath.RESULT_TYPE_LABEL, JsonPath.TRIM_LABEL})
@RegisterForReflection
public class JsonPath {
public static final String EXPRESSION_LABEL = "expression";
public static final String ALLOW_EASY_PREDICATE_LABEL = "allow-easy-predicate";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
import io.kaoto.backend.api.service.deployment.generator.kamelet.KameletRepresenter;
import io.kaoto.backend.model.deployment.kamelet.step.EIPStep;
import io.kaoto.backend.model.parameter.Parameter;
import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.LinkedHashMap;
import java.util.Map;

@JsonPropertyOrder({"name", "groovy", "javascript", "expression"})
@RegisterForReflection
public class Script extends EIPStep {
public static final String GROOVY_LABEL = KameletRepresenter.GROOVY;
public static final String JAVASCRIPT_LABEL = KameletRepresenter.JAVASCRIPT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
import io.kaoto.backend.model.deployment.kamelet.step.EIPStep;
import io.kaoto.backend.model.parameter.Parameter;
import io.kaoto.backend.model.step.Step;
import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.Map;

@JsonPropertyOrder({"name", "groovy", "javascript", "expression"})
@RegisterForReflection
public class ScriptExpression extends EIPStep {
public static final String GROOVY_LABEL = KameletRepresenter.GROOVY;
public static final String JAVASCRIPT_LABEL = KameletRepresenter.JAVASCRIPT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import io.kaoto.backend.model.parameter.Parameter;
import io.kaoto.backend.model.step.Step;
import io.quarkus.runtime.annotations.RegisterForReflection;

import java.util.HashMap;
import java.util.Map;

@RegisterForReflection
public class Tokenizer extends Expression {
public static final String TOKEN_LABEL = "token";
public static final String END_TOKEN_LABEL = "end-token-label";
Expand Down

0 comments on commit ec10c36

Please sign in to comment.