Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1.26
-
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
- is related to
-
JCRVLT-248 Support install hook bundles
- Open