camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11137) @UriParam should support real enums
Date Wed, 12 Apr 2017 08:08:41 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15965525#comment-15965525
] 

Claus Ibsen commented on CAMEL-11137:
-------------------------------------

They do already that if the type is *enum*. 
But sometimes they are not like a String as in this example.

> @UriParam should support real enums
> -----------------------------------
>
>                 Key: CAMEL-11137
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11137
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Luca Burgazzoli
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> As today the @UriParam supports enums as string which sometimes leads to stuffs like:
> {code:java}
>     @UriParam(label = "producer", defaultValue = "put", enums =
>              "put,putAll,putIfAbsent,putAsync,putAllAsync,putIfAbsentAsync,"
>            + "get,"
>            + "containsKey,containsValue,"
>            + "remove,removeAsync,"
>            + "replace,replaceAsync,"
>            + "size,"
>            + "clear,clearAsync,"
>            + "query,stats")
>     private String command;
> {code}
> It would be nice to support real enum so there's no need to manual update the @UriParam
definition once the enums change.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message