Hi Stuart,

See inline responses...

Stuart McCulloch wrote:
2009/11/15 John E. Conlon <[email protected]>

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

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?


FYI, Felix does have a metatype service:

   http://felix.apache.org/site/apache-felix-metatype-service.html

   http://www.apache.org/dist/felix/org.apache.felix.metatype-1.0.4.jar
Duh, - that's what I get for working so late:-)
also you can often mix service bundles between frameworks - for example,
there is nothing Felix specific (afaik) about its metatype implementation so
you could deploy it onto any other OSGi framework (equinox, KF, etc.)

the same is true for most OSGi services, so feel free to mix'n'match
Yes, I have done this with the org.eclipse.equinox.io and org.eclipse.equinox.wireadmin as I couldn't find these in Felix when (that was during the daytime when I was awake;-).

thanks for the reminder,

John

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

Reply via email to