Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Fri Apr 25 01:37:08 EDT 2025

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

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

Back to the top