Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is it possible to intercept the loading of bundle resources?
Is it possible to intercept the loading of bundle resources? [message #336890] Fri, 10 July 2009 06:23 Go to next message
Philipp Kursawe is currently offline Philipp KursaweFriend
Messages: 135
Registered: July 2009
Senior Member
Hello,

I wonder if its possible in OSGi to intercept the request for loading
bundle resources. I would like to intercept all requests for
/intro/**.xml resources and return my own stream implementation for those.

Possible with Eclipse/Equinox/OSGi?

Thanks,
Phil
Re: Is it possible to intercept the loading of bundle resources? [message #336899 is a reply to message #336890] Fri, 10 July 2009 15:50 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Equinox supports Adapator Hooks.
http://wiki.eclipse.org/Adaptor_Hooks

I don't know a lot of the details, but it involves a creating a fragment
on the system bundle (org.eclipse.osgi).

One of the hooks is on class loading, which I expect could do what you want.

-Andrew
Philipp Kursawe wrote:
> Hello,
>
> I wonder if its possible in OSGi to intercept the request for loading
> bundle resources. I would like to intercept all requests for
> /intro/**.xml resources and return my own stream implementation for those.
>
> Possible with Eclipse/Equinox/OSGi?
>
> Thanks,
> Phil
Re: Is it possible to intercept the loading of bundle resources? [message #336900 is a reply to message #336890] Fri, 10 July 2009 16:35 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Philipp Kursawe wrote:
> Hello,
>
> I wonder if its possible in OSGi to intercept the request for loading
> bundle resources. I would like to intercept all requests for
> /intro/**.xml resources and return my own stream implementation for those.
>

Yes, see http://wiki.eclipse.org/Adaptor_Hooks

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:File not found after trying to get Eclipse language pack
Next Topic:Perform a rename refactor
Goto Forum:
  


Current Time: Thu Nov 07 16:37:13 GMT 2024

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

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

Back to the top