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 <maili...@hupie.com>
To:     OSGi Developer Mail List <osgi-dev@mail.osgi.org>
Date:   05/13/2016 05:42 AM
Subject:        [osgi-dev] LogService spec question
Sent by:        osgi-dev-boun...@mail.osgi.org



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