Hi,

Alexander Klimetschek schrieb:
> On Tue, Jun 16, 2009 at 8:02 AM, Felix Meschberger<fmesc...@gmail.com> wrote:
>> (1) The most basic criterion for the system to be ready is the available
>> of certain services.
> 
> Yes, services is probably enough. The availability of bundles doesn't
> actually help for readyness detection, it's their services that are
> important.
> 
>> (2) There must be away to specify which services are required.
>>
>>
>> Now, this is very simple and easy: As Alex Klimetschek proposes we are
>> using ConfigurationAdmin for this. Each service can be described by a
>> few properties:
>>
>>   (a) Service Name
>>   (b) Service Filter
>>   (c) Number of services
>>
>> The configuration of required services is a multivalued string property
>> of the format
>>
>>    [ number ] ( serviceName | serviceFilter )
>>
>> where
>>
>>    number        is an optional positive number of required services
>>    serviceName   is the name of a service interface
>>    serviceFilter is a service filter according to 3.2.6, Filter Syntax
> 
> +1 for Filter syntax
> 
> Just to be sure: we can also define service implementations by
> filters, right? Eg. for the scripting case, we want to be able to say,
> we need the "jsp" and the "esp" scripting engines available, and not
> just 2 services implementing the scripting engine service interface.

you might define two entries:

   &((OBJECT_CLASS=javax.jcr.ScriptEngineFactory)(extension=jsp))
   &((OBJECT_CLASS=javax.jcr.ScriptEngineFactory)(extension=esp))

Regards
Felix
> 
> Regards,
> Alex
> 

Reply via email to