Hi Felix,
Felix Meschberger wrote:
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 ?
No. But I am not familiar with the files maintained by the config admin
service at all. As a matter of fact, another issue I have is with a pid
configuration that was generated by my manipulating config:xxx commands
in the console. I don't need this config anymore but I can't really get
rid of it with config:propdel on the pid itself. Is there a command for
completely deleting a config? Or do I have to manually delete the
configs? If so where do these get persisted and how do I interact with
them?
Or is this the files handled by fileinstall ?
Yes the files I was refering to are being managed by the fileinstall.
I'm adding a my.factory.pid-xxx.cfg configuration properties file to the
deploy directory. This config is for a service factory that generates
wireadmin producer instances.
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.
So if I have a configuration that contains Booleans and Integers, when
I create the configuration through the console and the updated method
returns a dictionary to my ManagedService/Factory all the objects will
still be Strings because that is what a property file is storing?
For fileinstall, I don't know.
One further question - Can the internal configs be combined with hard
configurations coming in from the fileinstall? Meaning if one installs
a config in the deploy directory can one then go into the console and
still change configurations? Where would it store changes if it does
anything at all - in the internal or the external config files?
best regards,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]