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

have OSGiServiceInjector reuse request bindings when possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Models Impl 1.4.10
    • Models Impl 1.4.12
    • Sling Models
    • None

    Description

      right now OSGiServiceInjector uses its own bundle context for fetching the service reference, which generates ClassNotFoundException under the hood during assignable checks at each bind, which is bad for performances.

      The annotation should either:

      • use the context of the bundle it extends,
      • use scripting core's ServiceCache,
      • use the above through SlingScriptHelper

      reusing the above works for request adaptable, not for resources, that will be treated in another ticket

      cc radu justin

      Attachments

        Issue Links

          Activity

            People

              npeltier Nicolas Peltier
              npeltier Nicolas Peltier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m