[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] A few questions on ConditionalPermissionAdmin
- From: Thomas Watson <tjwatson@xxxxxxxxxx>
- Date: Mon, 21 Mar 2011 10:39:39 -0500
- Delivered-to: firstname.lastname@example.org
1. In the case where the bundle does not have the proper export permission:
The bundle is allowed to resolve because its own constraints have been satisfied. This allows the bundle to activate since it can resolve. The fact that the bundle is not actually allowed to export something does not prevent it from being able to resolve.
2. and 3. I am not aware of any graphical tools to do this. Although 3. could be in the realm of PDE since this is editing the content of a bundle. You should consider opening a bug against PDE->UI for this (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDE)
Ali Naddaf ---03/21/2011 09:54:04 AM---Hello everyone.
Ali Naddaf <ali.naddaf@xxxxxxxxx>
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
03/21/2011 09:54 AM
[equinox-dev] A few questions on ConditionalPermissionAdmin
I recently started playing with the ConditionalPermissionAdmin and local
permissions in Equinox. Here are a few questions I ran into:
1. As a simple test, I wrote a trivial bundle that does nothing except
exporting a package. I noticed that if I do not explicitly state the
PackageAdmin permission for the exported package, still my bundle comes
up without any issue. To make sure I was setting things up correctly, I
also tried to export a service from the same bundle without giving the
ServicePermission in my local permissions and that failed so the setup
seems to be right but for some reason, even though I have the Export
clause in my manifest and no PackagePermission in my local permissions,
still the bundle comes up fine. In other words, commenting or
uncommenting the following line in my permissions.perm didn't make any
# ( org.osgi.framework.PackagePermission "com.acme.osgi.client1"
"IMPORT,EXPORT" ) # com.acme.osgi.client1 is the package that I was
2. Is there a graphical tool that can inspect a bundle for its local
permissions, so that an operator can use that to see what sort of
permissions are being requested? I know it is easy to open a jar file
and look at the permissions.perm there but it seems like something that
may already have a tool done by someone.
3. Is there a graphical interface (even as an eclipse plugin or so) to
help developers create their local permissions in the permissions.perm?
It is easy to make a syntax error there, so again it sounds to me like
something that can benefit from a more graphically oriented tool.
equinox-dev mailing list