Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-07-01 Thread Martin Lippert
Hi Rowan, I have a followup question if I may. In trying to resolve this myself I had a look at the 'perthis', 'pertarget', and even 'pertypewithin' qualifiers for the aspect definintion. Are these supported in equinox aspects? I do not see any difference when I try to use them. If I want a

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-30 Thread sorbus
Stuart said: >another possibility would be to import and export the 'widgets' >package from both widget bundles, then they would both see >the same class regardless of the order they were installed. > >eg: > > Export-Package: widgets > Import-Package: org.osgi.framework, widgets > >see: >http://www

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-29 Thread Martin Lippert
Hi Stuard, another possibility would be to import and export the 'widgets' package from both widget bundles, then they would both see the same class regardless of the order they were installed. eg: Export-Package: widgets Import-Package: org.osgi.framework, widgets see: http://www.osgi.or

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-29 Thread Stuart McCulloch
2008/6/29 Martin Lippert <[EMAIL PROTECTED]>: > Hi Stuart, > > another possibility would be to import and export the 'widgets' >> package from both widget bundles, then they would both see >> the same class regardless of the order they were installed. >> >> eg: >> >> Export-Package: widgets >>

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-29 Thread Martin Lippert
Hi Stuart, another possibility would be to import and export the 'widgets' package from both widget bundles, then they would both see the same class regardless of the order they were installed. eg: Export-Package: widgets Import-Package: org.osgi.framework, widgets see: http://www.osgi.or

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-29 Thread Stuart McCulloch
2008/6/29 Martin Lippert <[EMAIL PROTECTED]>: > Hi Rowan, > > I looked at your example and I think I have found the problem. Your aspect > bundle imports the package "widgets" and can therefore refer to your class > Widget. But since both widget bundles export the same package including the > same

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-28 Thread Martin Lippert
Hi Rowan, I looked at your example and I think I have found the problem. Your aspect bundle imports the package "widgets" and can therefore refer to your class Widget. But since both widget bundles export the same package including the same class (Widget), the aspect definition is wired to on

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-24 Thread sorbus
Martin wrote: >Hi Rowan, > >I assume the problem is that the aspect should weave the same class from >>different bundles. For the aspect both Widget classes are visible (because >both >should be woven) and the weaver does not know which one to use for type >>resolution. But this is just a first

Re: [equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-23 Thread Martin Lippert
Hi Rowan, I assume the problem is that the aspect should weave the same class from different bundles. For the aspect both Widget classes are visible (because both should be woven) and the weaver does not know which one to use for type resolution. But this is just a first guess on the problem.

[equinox-dev] Aspects: problem weaving same class file in different bundles

2008-06-23 Thread sorbus
I suspect I can't do what I want to, but here goes anyway I have two 'applications' as bundles in equinox. Each use the same code, they only differ in configuration and Bundle-SymbolicName. By same code I mean they have identical copies, not shared code/services or anything. Like this: Bundle