The v2Archive OSGi enRoute has a Configurer that uses a subset of the bnd Macro 
language. This supports ${system;..} and ${system_allow_fail}. These take shell 
command lines.

P



> On 14 Jul 2018, at 09:07, David Leangen via osgi-dev <osgi-dev@mail.osgi.org> 
> wrote:
> 
> 
> Thanks, BJ.
> 
> Yeah, right now I am using a Dictionary exactly how you mentioned, but I am 
> wondering if there is a way to maintain it the same way I do as for my 
> configurations.
> 
> Has there ever been a discussion about possibly including this type of thing 
> in the spec? For instance, a spec could include a script (saved in a 
> configuration file), and the script could be parsed and included in a 
> Configuration.
> 
> Has nobody ever encountered this use case? If you have, how did you solve it?
> 
> 
> Cheers,
> =David
> 
> 
>> On Jul 14, 2018, at 5:04, BJ Hargrave <hargr...@us.ibm.com 
>> <mailto:hargr...@us.ibm.com>> wrote:
>> 
>> Component properties are basically service properties which are basically 
>> meant to be things that can go in a Configuration: 
>> https://osgi.org/specification/osgi.core/7.0.0/framework.module.html#i3217016
>>  
>> <https://osgi.org/specification/osgi.core/7.0.0/framework.module.html#i3217016>.
>>  Complex objects including objects implementing functional interfaces are 
>> not in scope for a Configuration.
>>  
>> That said, I imagine you could pass any value object in the Dictionary 
>> supplied to ComponentFactory.newInstance since they are not stored in 
>> Configuration Admin and SCR would not police the value object types :-)
>> --
>> 
>> BJ Hargrave
>> Senior Technical Staff Member, IBM // office: +1 386 848 1781
>> OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788
>> hargr...@us.ibm.com <mailto:hargr...@us.ibm.com>
>>  
>>  
>> ----- Original message -----
>> From: David Leangen via osgi-dev <osgi-dev@mail.osgi.org 
>> <mailto:osgi-dev@mail.osgi.org>>
>> Sent by: osgi-dev-boun...@mail.osgi.org 
>> <mailto:osgi-dev-boun...@mail.osgi.org>
>> To: David Leangen via osgi-dev <osgi-dev@mail.osgi.org 
>> <mailto:osgi-dev@mail.osgi.org>>
>> Cc:
>> Subject: [osgi-dev] Functions as configuration
>> Date: Fri, Jul 13, 2018 3:32 PM
>>  
>> Hi!
>> 
>> Is there any way to include functions as part of a component configuration?
>> 
>> 
>> Cheers,
>> =David
>> 
>> _______________________________________________
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
>> https://mail.osgi.org/mailman/listinfo/osgi-dev 
>> <https://mail.osgi.org/mailman/listinfo/osgi-dev>
>>  
>>  
>> 
> 
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to