Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1008

remove more context-free DSL methods

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 2.0-M1
    • Component/s: None
    • Labels:
      None

      Description

      there are a number of DSL methods in the base class which can be kinda used anywhere - which can lead to confusion... e.g.

      http://www.nabble.com/Non-registry-beans-td20088181s22882.html

      as part of 2.0.0 we should try zap most of the public methods which don't make much sense - so we encourage folks to use the context based methods.

      e.g. rather than

      filter(someStaticMethod).to()
      

      we should prefer

      filter().xpath("..".to()
      

      i.e. using filter(). in an IDE will show a better completion list than allowing any static method import

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jstrachan james strachan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: