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 02:23 Go to next message
Philipp Kursawe is currently offline Philipp Kursawe
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 11:50 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
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 12:35 Go to previous message
Paul Webster is currently offline Paul Webster
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 Jul 31 09:38:25 EDT 2014

Powered by FUDForum. Page generated in 0.01842 seconds