On Mon, Mar 28, 2011 at 12:11 PM, Bertrand Delacretaz
<[email protected]> wrote:
> 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.
>
That s nice Idea to use a Bundle Header to 1. indicate that the bundle
need to be processed and 2. to get the directory used to load the
config form the bundle as value for that key.
The remaining stuff should be easy to implement , because it will be
very similar to the file based solution.

thx
Rupert

> -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
>



-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to