[jboss-dev-forums] [JBoss OSGi Development] - Re: Handle potential bundle:// protocol with VFS
alesj
do-not-reply at jboss.com
Wed Nov 11 12:23:40 EST 2009
"thomas.diesler at jboss.com" wrote :
| Accessing a resources across bundles, you could do
|
|
| | sysContext.getBundle(someId).getResource("/some-resource.txt")
| |
|
| The return could be a VFS URL. I still don't quite understand the benefit of introducing/using an alternative URL representation.
|
| Do you have a specific use case in mind, that you could present here?
1) You're using code, not URL or plain string. Users != no OSGi api
2) With direct VFS usage, you're by-passing restrictions enforced by bundles
With bundle:// approach, we handle both cases properly.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265112#4265112
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265112
More information about the jboss-dev-forums
mailing list