OSGi jar restricted inside a CQ5/ AEM component
-
02-01-2020 - |
Domanda
Is it possible to install a OSGi jar to Felix by keeping the jar as a part of the cq5 component and install it on build?
Soluzione
You cannot restrict an OSGi bundle so that only one CQ component can use it. If an OSGi bundle exports a java package, that will be visible from all java and scripting code.
Altri suggerimenti
You can include it in a content package at build time, if you're targeting this with your question. The multimodule-content-package-archetype provided by Adobe does that as well.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow