Recommendations for provider id when using the equinox extension registry [message #53907] |
Thu, 01 December 2005 18:51  |
Eclipse User |
|
|
|
I am exploring the new extension registry that can be used independent of
eclipse. The method IExtensionRegistry.addXMLContribution takes as input a
provider id defined as a long. I presume this has its heritage in OSGI
bundles.
I would appreciate any recommendations on how to best derive a id in this
form from a string since that is what is referenced by extension points
and their extensions. I looked for some correlation between
Bundle-SymbolicName (a string) and BundleId (a long) but could not find
something helpful. I know how to derive a long from a string by obtaining
it's hashcode but I am not sure that this approach is sufficiently robust
to guarantee uniqueness.
Thanks
Jim D'Anjou
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28148 seconds