You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2014/02/21 22:55:21 UTC

[jira] [Created] (CAMEL-7234) DataFormat interface should expose a list of supported formats

Sergey Beryozkin created CAMEL-7234:
---------------------------------------

             Summary: DataFormat interface 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
(v6.1.5#6160)