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

camel-bean - Let cache be default enabled

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      See CAMEL-14357

      We should let cache=true by default enabled. This then avoids re-creating new beans when you refer to a bean by its class name, and also avoids looking up the bean from the registry each time, and so on.

      In other words it acts as a singleton scoped bean.

      If people want to create a new bean per use, then they can set cache=false.

      And we could update the documentation to indicate cache acts as a singleton scope. Or we could add singleton=true|false as the option and deprecate cache if its a better name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: