[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Package access across plug-ins...
- From: BJ Hargrave <hargrave@xxxxxxxxxx>
- Date: Sat, 21 Oct 2006 21:43:19 -0400
- Delivered-to: email@example.com
You can't do it with 2 bundles (plugins). Each bundles uses a distinct
class loader and package privacy does not cross class loader boundaries.
Fragments can access package private members since a fragment is loaded by
its host bundle's class loader.
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
office: +1 407 849 9117
mobile: +1 386 848 3788
"Kirby Bohling" <computerslicer23@xxxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx
10/21/2006 07:38 PM
Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
[equinox-dev] Package access across plug-ins...
I'm still working on the Unit testing application described in an e-mail
yesterday. I am splitting my plug-ins so that test code is not with
When I run the tests thru the "Run As -> JUnit Test", it works fine.
When I right click it and do "Run as JUnit Test Plug-in", I get an error
when I attempt to access anything that is "protected" or "package
scope? I have several API's that expose calls to be used for testing as
protected or package level scope.
It appears that Fragments would solve this problem, but I'd like to
one test plug-in for a number of plug-ins. So I don't think I'd have
to all of the various tests unless I could have many hosts for the
(I don't believe that's possible). I was curious if there is a way to to
give the plug-in org.foo.test access so that it can access org.foo
constructors and package protected scope objects. When the code is all in
single plug-in it appears to work fine.
If this is an inappropriate list, a pointer to the correct list would
All-in-one security and maintenance for your PC. Get a free 90-day trial!
equinox-dev mailing list