Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-116

InstallHookProcessor.Hook should not only use TCCL as fallback

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.26
    • 3.1.28
    • None
    • None

    Description

      Currently the InstallHookProcessor.Hook only uses the thread context class loader as fallback to load the hook classes (https://github.com/apache/jackrabbit-filevault/blob/64caa29325452c1adf968ae05e2308b37f3600cc/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/InstallHookProcessorImpl.java#L206). This almost never works in an OSGi context.

      Instead I would propose to try the Bundle's Class Loader and add `DynamicImport-Package: *` to the OSGi manifest.
      That of course would not work in non-OSGi contexts. Therefore it should just be implemented as another fallback option (in addition to TCCL).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: