On Jan 15, 2009, at 8:31 PM, Richard S. Hall wrote:
Alan D. Cabrera wrote:
On Jan 15, 2009, at 8:02 PM, Richard S. Hall wrote:
Alan D. Cabrera wrote:
When a bundle updates, I guess it can switch from being a
fragment bundle to a host bundle depending on the contents of the
updated bundle. Can the symbolic name change so long we there is
no other bundle with that name and version? I don't see where it
says that it cannot.
I think it is accurate to say that anything can change except the
bundle ID and bundle location.
Interesting, so I can have a RequiredBundle instance from the
Package Admin that was retrieved using the symbolic name
com.acme.dynamite and have that
instance.getBundle().getSymbolicName() return com.martian.eliminator.
Am I correct?
If I understand the point of your question correctly, quite
possibly. You can end up in situations when you have updated a
bundle (but not yet refreshed it) where the multiple revisions lead
to odd results. This is because a lot of OSGi API answers questions
based on the current revision, but wires may still exist to prior
revisions waiting to be refreshed and the introspective OSGi API may
still report on that.
Ahh, and hence the RequiredBundle.getSymbolicName() method which, in
this case, would return com.acme.dynamite.
Regards,
Alan
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev