Camel
  1. Camel
  2. CAMEL-330

Components / endpoints should advertise the data types they support

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: Future
    • Component/s: camel-core
    • Labels:
      None

      Description

      In the current version a conversion is attempted on a best effort basis.

      An endpoint does not have knowledge about the data types supported by the previous or next endpoint in the route. If an endpoint would publish what data types it supports, static analysis would be possible to determine if messages could be processed successfully or additional type converters are necessary.

        Activity

        Hide
        Bruno Borges added a comment -

        In Apache Wicket there was a time where people thought adding Generics support would be great. In the end it became a nightmare.

        This feature should add the possibility to static type data while keeping the current behaviour of best effort on convertions.

        Two possibilities: annotations and generics.

        IMO, annotations would be better, even though it wouldn't avoid dynamic types. But at least would better document endpoints/components, and also help runtime checks that could perform better than best effort convertions.

        Show
        Bruno Borges added a comment - In Apache Wicket there was a time where people thought adding Generics support would be great. In the end it became a nightmare. This feature should add the possibility to static type data while keeping the current behaviour of best effort on convertions. Two possibilities: annotations and generics. IMO, annotations would be better, even though it wouldn't avoid dynamic types. But at least would better document endpoints/components, and also help runtime checks that could perform better than best effort convertions.

          People

          • Assignee:
            Unassigned
            Reporter:
            Hadrian Zbarcea
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development