Additional question.

Imagine the following situation ;

DPa.v1 has a resource ra1.x containing Object to be set
{"service.pid","jp.co.ntt.A"} & {"bundle.location","osgi-dp:locA"}.

DPa.v2 (fixed package of DPa.v1) has a resource ra1.x' containing no Object
of {"service.pid","jp.co.ntt.A"} & {"bundle.location","osgi-dp:locA"} to
be set.

Next, DPa.v1 has been installed and the Configuration object has been
created in ConfigurationAdmin's repository.

Q3. Should this update of DeploymentPackage (DPa.v1 -> DPa.v2) delete
the Configuration object? Does merge option effect this behavior ?

Regards,

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

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


On Tue, 26 Sep 2006 09:59:18 -0400
Ikuo Yamasaki <[EMAIL PROTECTED]> wrote:

Ikuo> Hi all,
Ikuo> 
Ikuo> I have questions about the spec of Auto Configuration.
Ikuo> 
Ikuo> First, let me assume that there exists a Configuration object with
Ikuo> properties in Configuration Admin's repository.
Ikuo>   {"service.pid","jp.co.ntt.A"},
Ikuo>   {"bundle.location","osgi-dp:locA"},
Ikuo>   {"key1","value1Old"},
Ikuo>   {"key2","value2"}
Ikuo> 
Ikuo> And there is a following Object element in a resource XML file to
Ikuo> be processed by Auto Configuration resource processor,
Ikuo>   {"service.pid","jp.co.ntt.A"},
Ikuo>   {"bundle.location","osgi-dp:locA"},
Ikuo>   {"key1","value1New"},
Ikuo>   {"key3","value3"},
Ikuo> 
Ikuo> ------------
Ikuo> Q1. If the merge option of its Designate element is true,
Ikuo>   AutoConfiguration resource processor should update the
Ikuo>           Configuration object's properties to 
Ikuo> 
Ikuo>   {"service.pid","jp.co.ntt.A"},
Ikuo>   {"bundle.location","osgi-dp:locA"},
Ikuo>   {"key1","value1Old"},   <-- left as it was
Ikuo>   {"key2","value2"},      <-- left as it was
Ikuo>   {"key3","value3"}       <-- added
Ikuo> 
Ikuo>   Is my understanding correct ?
Ikuo> ------------
Ikuo> Q2. If the merge option of its Designate element is false,
Ikuo>   how should AutoConfiguration resource processor update the
Ikuo>   Configuration object's properties ?
Ikuo> 
Ikuo>    (A 2-1) Whole properties of the Configuration object must be replaced.
Ikuo>   {"service.pid","jp.co.ntt.A"},
Ikuo>   {"bundle.location","osgi-dp:locA"},
Ikuo>   {"key1","value1New"},
Ikuo>   {"key3","value3"}
Ikuo> 
Ikuo>    (A 2-2) 
Ikuo>   {"service.pid","jp.co.ntt.A"},
Ikuo>   {"bundle.location","osgi-dp:locA"},
Ikuo>   {"key1","value1New"},   <-- replaced
Ikuo>   {"key2","value2"},      <-- left as it was
Ikuo>   {"key3","value3"}       <-- added
Ikuo> ------------
Ikuo> Regards,
Ikuo> 

_______________________________________________
OSGi Developer Mail List
osgi-dev@bundles.osgi.org
http://bundles.osgi.org/mailman/listinfo/osgi-dev

Reply via email to