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

Provide a mechanism to detect if a dynamic classloader is still valid

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Commons ClassLoader 1.1.4
    • Fix Version/s: Commons ClassLoader 1.2.0
    • Component/s: Commons
    • Labels:
      None

      Description

      In some situations it is useful to know if a used classloader is still live/valid. Especially with dynamic class loaders it happens that a classloader gets invalidated but is still in use. In such cases the client of such a classloader should be able to detect this and reload classes.

      One use case is scripting in Sling: we have the JCR based classloader and for example compiled scripts. A JCR classloader gets invalid as soon as something changes with the classes it has loaded in the repository. In this case the jsp script engine should reload the compiled classes

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: