Hi all,
 
My inbox has a lot of stuff in it, including this thread (I should have waited 
until Monday LOL)... I'm sort of reading through these one at a time and I 
probably will respond to each on an individual basis, although that means a bit 
more in-box entries for all... apologize for that... I suspect this thread 
won't have a lot of volume to it... it's pretty cut and dry, I think...
 
To respond to the post below... Yes, you are probably right... I was just using 
an opportunity to explore the fragment feature, without necessarily having an 
agenda for a particular use case... I agree with the below.... fragments are a 
bit of a tight coupling and I prefer the loose coupling of the typical OSGi 
bundle that I've grown accustomed to... Appreciate the response in that it 
seems to solidify my thinking...
 
I hope I didn't necessarily mislead anyone in terms of use or misuse of 
fragments for a particular use case... The spec talks about localization as a 
use case... that seems like a good one..
 
Have a good weekend (what's left of it), Craig

________________________________

From: [EMAIL PROTECTED] on behalf of BJ Hargrave
Sent: Fri 6/6/2008 10:21 AM
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Fragments, Felix,SCR/DeclarativeServices and Inheritance



I don't think you have demonstrated that you need to use fragments here. 
Fragments should only be used when necessary and there is no better way. 

You can easily have the "base" bundle export the package with the base class. A 
second bundle can import that package, extend that base class and use DS on the 
extended class. 
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance <http://www.osgi.org/> 
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>    

office: +1 386 848 1781
mobile: +1 386 848 3788






From:   "Craig Phillips" <[EMAIL PROTECTED]> 
To:     "OSGi Developer Mail List" <[email protected]> 
Date:   2008/06/06 09:35 AM 
Subject:        [osgi-dev]         Fragments, Felix, SCR/DeclarativeServices 
and Inheritance    

________________________________




Hi, 
  
I'm attempting to implement a fragment exemplary application in which a 
fragment package class <<extends>> a host service method... yeah, I'm probably 
a bit out of my league ATT... Also, apparently (as I read on the spring-DM 
guide) Felix does not [yet, presume] support fragments? It seems that Felix is 
ignoring my "Fragment-Host:" manifest entry... 
  
So, a couple questions as I decide to move to pax-run and either equinox 
(cringe) or knoplerfish... 
  
Can I actually do inheritance/override of a base service method in a fragment? 
Keep in mind, too, that I'm using SCR/DeclarativeServices 
  
I can provide source/dot.bnd's etc...  Note - I do keep client, base, and 
fragment code in separate packages (meaning, there is zero split-packaging 
going on); 
  
Thanks, Craig 
 _______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev 
<https://mail.osgi.org/mailman/listinfo/osgi-dev>  

<<winmail.dat>>

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

Reply via email to