Hi John,

John E. Conlon schrieb:
> How does the Config Admin deal with type conversion between the
> properties oriented *.cfg files (storing Strings) and the updated
> configurations that are sent by the service that may be a non String
> (Integer, Boolean, etc)?

It depends on what you mean by "*.cfg" files. Are these the files
maintained internally by the config admin service ?

Or is this the files handled by fileinstall ?

In the first case the config admin service internally ensures with type
tags that properties are read into the correct type when loading.

In fact, the Felix config admin service implementation does not use the
metatype service: It just stores and loads the data types as they are
provided in the configuration object. There is no conversion involved.

For fileinstall, I don't know.

Regards
Felix

> 
> Have worked with another framework that use the Metatype service for
> this kind of conversion, but I am not aware that Felix has a Metatype
> service??
> Without a Metatype service in Felix, do I have to manage the conversion
> for all non Strings myself?
> 
> thanks,
> 
> John
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to