S.B : note that in 2. the test uses sf.setModelRefWithServiceClass(modelref, 
SomeClass.class) but it could've just used
sf.setModelRef(modelref) even with this model describing an interface only. 
sf.setModelRefWithServiceClass() is used mainly in
(D)OSGI where the OSGI runtime has already loaded an interface class.

and

S.B : If you have a model describing an interface only then you need to call 
setModelRefWithServiceClass as it is done in the test

there's a contradiction here : one have to use setModelRefWithServiceClass only in the (D)OSGI case, or when you have the interface class already loaded. Otherwise setModelRef(modelref) will do

cheers, Sergey

Reply via email to