You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/09/02 08:51:00 UTC

[jira] [Resolved] (CAMEL-7234) org.apache.camel.spi.DataFormat should expose a list of supported formats

     [ https://issues.apache.org/jira/browse/CAMEL-7234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-7234.
--------------------------------
    Resolution: Won't Fix

> org.apache.camel.spi.DataFormat should expose a list of supported formats
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-7234
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7234
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>
> If we have two DataFormat implementations and say two different HTTP media types then it is not possible to write a generic code selecting the right format matching the current media type. While this is specific to the marshalling/unmarshalling, the problem can easily be generalized
> Proposal: add a new method, "Set<String> getSupportedFormats()" in the next major Camel release, and document it as a migration issue for users implementing custom Data formats not shipped with Camel be aware of the upgrade. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)