-1

Can an inherited bundle override the java classes in parent bundle. I would like to change the one of the class in the bundle so for this i will use inheritance concept to have a new bundle inheriting parent bundle. Please let me know how can i do this ?

Thanks in advance.

Naveen
  • 139
  • 2
  • 11
  • What do you mean under the word "inherit"? You can embed bundles or create fragment bundles (that belong to a host-bundle). – Balazs Zsoldos Apr 09 '13 at 16:09
  • @Balazs Zsoldos suppose i have a bundle Hello which have a.java class in it with some methods but now i want a bundle which have all the methods in a.java class but only one method with different functionality as in bundle Hello. So i am just asking is there any way to do so ?? – Naveen Apr 09 '13 at 16:12
  • Why come to StackOverflow to ask whether something is possible?? Why not just try it first, and then come here if it didn't work... – Neil Bartlett Apr 09 '13 at 16:31

1 Answers1

0

Yes, just use normal Java inheritance.

The bundle containing the base class will need to export the package to which that class belongs, and the bundle containing the subclass will need to import the same package.

Neil Bartlett
  • 23,743
  • 4
  • 44
  • 77