See
https://osgi.org/javadoc/r6/core/org/osgi/framework/Constants.html#OBJECTCLASS
You get this value by calling ServiceReference.getProperty("objectClass")
The framework is required to use a String[] to store the class names for
which the service was registered with.
Tom
From: Ferry Huberts <[email protected]>
To: OSGi Developer Mail List <[email protected]>
Date: 05/13/2016 05:42 AM
Subject: [osgi-dev] LogService spec question
Sent by: [email protected]
Hi,
I'm working on a LogService implementation.
Section 101.6.4 Log Events specifies on its last line
* service.objectClass - (String[]) The object class of the service object.
I can't quite make out what is meant here. The String[] seems rather
strange with '...object class..' and most of the other fields are
annotated with how to gather the information while this field is not.
What exactly should be stored in this property?
Thanks
--
Ferry Huberts
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev