Hi, On Mon, Mar 28, 2011 at 11:45 AM, Rupert Westenthaler <[email protected]> wrote: > I am currently evaluating if we could use the Sling Installer to > handle all the various configuration data needed by the different > Stanbol components e.g....
I think that would work fine, we already have the required Sling bundles in our launcher so not much is needed. > ...Is there a possibility that the Sling Installer also processes > resources within deployed bundles... There's nothing OOTB in Sling, but we'd just need to implement a service that talks to the OsgiInstaller [1] to install, update and remove configs when bundles come and go. The OSGi extender pattern [2] can be used for this: a BundleListener listens to bundle states change, and reads the bundle headers to locate the configuration resources. -Bertrand [1] http://svn.apache.org/repos/asf/sling/trunk/installer/core/src/main/java/org/apache/sling/installer/api/OsgiInstaller.java [2] http://www.aqute.biz/Snippets/Extender
