Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Adding persistable contributions to Extensionregistry
Adding persistable contributions to Extensionregistry [message #496800] Wed, 11 November 2009 12:21 Go to next message
Suraj  is currently offline Suraj Friend
Messages: 16
Registered: November 2009
Location: Bangalore
Junior Member
HI,

I need to add persistable contributions to the ExtensionRegistry. I digged in a little and found the method addContribution(..) in Extensionregistry. But to enable persistence it expects a mastertoken as the last parameter. Except reflection I could not find a way to get the master token.

Is there a way around for such a problem.

Thanks,
Suraj Chandran
Huawei Telecomunications.
Bangalore, India

[Updated on: Fri, 13 November 2009 05:05]

Report message to a moderator

Re: Adding persistable contributions to Extensionregistry [message #496870 is a reply to message #496800] Wed, 11 November 2009 15:36 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

no. If you want to add a persistant entry to the registry you must use the master token. That means either you have to be responsible for creating the registry yourself (in an OSGi or RCP app, somehow using low level hooks) or you use reflection to do it (not recommended) as you would have to figure out when your contributions disappeared (from a -clean, for example) and re-add them as the extension registry is re-building its cache.

Why not create and install a small plugin with your contributions using OSGi? They would show up and stay around more reliably (with the down side that you have to create them on disk to load them).

PW


Re: Adding persistable contributions to Extensionregistry [message #496900 is a reply to message #496870] Wed, 11 November 2009 16:44 Go to previous messageGo to next message
Suraj  is currently offline Suraj Friend
Messages: 16
Registered: November 2009
Location: Bangalore
Junior Member
Thanks Paul for active response,

Actually we have a huge framework(in fact twice as big as eclipse in code size) that we are integrating with Equinox. Now we had plugin architecture too but they are custom plugins not standard OSGI format. Some time back we integrated extension registry in the framework, so we had created our ExtensionRegistry object and hence had the reference for the master-token. But now we are integrating the framework with eclipse so instead of creating our own ExtensionRegistry object we now are adding the contributions to the equinox's registry, but as we don't have the master token, its not persistable.

This is creating a huge startup performance issue for us.
Is there a way around this problem. I google around and found that others are facing similar problem too.

Thanks,
Suraj Chandran
Huawei Telecomunications.
Bangalore, India

[Updated on: Fri, 13 November 2009 05:05]

Report message to a moderator

Re: Adding persistable contributions to Extensionregistry [message #496981 is a reply to message #496800] Thu, 12 November 2009 04:11 Go to previous messageGo to next message
Suraj  is currently offline Suraj Friend
Messages: 16
Registered: November 2009
Location: Bangalore
Junior Member
Hi Paul,

We have worked with a solution for this problem and would like to contribute it to the equinox code base. Is is possible? Can you please tell the process.

Thanks,
Suraj Chandran
Huawei Telecomunications.
Bangalore, India

[Updated on: Fri, 13 November 2009 05:04]

Report message to a moderator

Re: Adding persistable contributions to Extensionregistry [message #497180 is a reply to message #496981] Thu, 12 November 2009 18:32 Go to previous messageGo to next message
Oleg Besedin is currently offline Oleg BesedinFriend
Messages: 41
Registered: July 2009
Member
Hi Suraj,
The good starting point would be to open an enahncement request against
RT/Equinox/Components:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox

and attach patch to it.

Sincerely,
Oleg Besedin

"Suraj" <chandransuraj@gmail.com> wrote in message
news:hdg1tr$fl8$1@build.eclipse.org...
> Hi Paul,
>
> We have worked with a solution for this problem and would like to
> contribute it the equinox. Is is possible. Can you please tell the
> process.
>
> Thanks
> Suraj
Re: Adding persistable contributions to Extensionregistry [message #497395 is a reply to message #496800] Fri, 13 November 2009 05:01 Go to previous messageGo to next message
Suraj  is currently offline Suraj Friend
Messages: 16
Registered: November 2009
Location: Bangalore
Junior Member
Hi Oleg,

I have raised a bug for the same at:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295035

Thanks,
Suraj Chandran
Huawei Telecomunications.
Bangalore, India
Re: Adding persistable contributions to Extensionregistry [message #497396 is a reply to message #496800] Fri, 13 November 2009 05:02 Go to previous message
Suraj  is currently offline Suraj Friend
Messages: 16
Registered: November 2009
Location: Bangalore
Junior Member
Hi Olgen,

I have filed a bug for the same here : https://bugs.eclipse.org/bugs/show_bug.cgi?id=295035

Thanks,
Suraj Chandran
Huawei Telecomunications.
Bangalore, India
Previous Topic:ElementTypeRegistry and OSGi
Next Topic:Ocl constraint on gmfmap
Goto Forum:
  


Current Time: Thu Apr 25 06:21:14 GMT 2024

Powered by FUDForum. Page generated in 0.04042 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top