Hi all,

I have several questions on DS Spec.

==============================================
[Background]

In 112.3.3 Reference Policy of R4.2 cmpn spec, "Static policy is usually
also not applicable if the cardinality specifies multiple bound
services.". 

However, spec doesn't specifies what will happen if static policy with
the cardinality which specifies multiple bound.

This caused several questions on DS:

==============================================

Precondition1: component1 has a static reference with cardinaliry of
"0..n" for serviceA. There is no serviceA registered. 
==> component1 has been already activated.

Q1. What will happen if serviceA is registered at Precondition1 ?

c.f. In Equinox DS impl, activation will be done after deactivation is done.

---------------------------

Precondition2: component1 has a STATIC reference with cardinaliry of
"1..n" for serviceA. There is one serviceA registered. 
==> component1 has been already activated.

Q2. What will happen if serviceA is registered at Precondition2 ?

c.f. In Equinox DS impl, activation will be done after deactivation is done.

---------------------------

Precondition3: component1 has a STATIC reference with cardinaliry of
"1..1" for serviceA. There is one serviceA registered. 
==> component1 has been already activated.

Q3. What will happen if another serviceA with higher SERVICE_RANKING than
the bound service is registered at Precondition3 ?

Should it be bound service replaced (and re-activate after
deactivattion) ? or not.

#  I guess NO, although there is no description about it,
#  as far as I see in the spec.

---------------------------

Precondition4: component1 has a DYNAMIC reference with cardinaliry of
"1..1" for serviceA. There is one serviceA registered. 
==> component1 has been already activated.

Q3. What will happen if another serviceA with higher SERVICE_RANKING than
the bound service is registered at Precondition4 ?

Should it be bound service replaced (and re-bind the new and unbind the
old) ? or not.

#  I guess NO, although there is no description about it,
#  as far as I see in the spec.

---------------------------

Best Regards,


---------------------
NTT Cyber Solutions Laboratories

     Ikuo YAMASAKI
        E-mail: [email protected]
TEL +81-46-859-8537  FAX +81-46-855-1282 

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to