Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1673

Cache results in SlingAdaptable

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adapter 2.0.4
    • Adapter 2.0.6
    • Extensions
    • None

    Description

      Currently a call to SlingAdaptable#adaptTo is not cached. If an object is adapted to the same class over and over again (during a request) this leads to new instanz creations and makes holding state in the created objects impossible.
      We could add a simple transparent cache to the SlingAdaptable to avoid these problems.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: