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

Bootdelegation support for third party library

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Launchpad Base 2.5.0
    • Launchpad Base 2.5.2
    • Launchpad
    • None

    Description

      Requirement:
      1) Bootdelegate third party library in SLing OSGI framework.
      2) Bootdelegated classes and resources should be looked up from configured third party jars only. Similar classes from parent classloaders should not leak into system. This case arises usually in Web deployment scenario.

      Infact we want to bootdelegate RSA library and at the same time prevent interference from parent classloaders in Web deployment model.

      Approach:

      1) We extend SlingLauncherClassloader to scan a predefined path (say <launchpadhome>/lib/etx) for jar files and add them to its classpath. This is done at startup. SlingLauncherClassloader will try to load class from its classpath before trying parent classloaders. Currently it is done for org.apache.sling.launchpad.base.jar.
      2) The packages can be configured for bootdelegation using sling properties:
      sling.bootdelegation.class.<any bootdelegated class>=<bootdelegated package>

      Attachments

        1. SLING-3370_New.patch
          7 kB
          Rohit Kumar

        Activity

          People

            amitgupt Amit Gupta
            rohitkumarbhagat Rohit Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: