You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by mit_jones <ti...@mccarthy.co.nz> on 2013/07/23 23:29:31 UTC

Options currently available for weaving in Felix?

Can someone please advise on what options are currently available for weaving
in Felix?

I have implemented an org.osgi.framework.hooks.weaving.WeavingHook combined
with Javassist for the bytecode manipulation. This seems to work okay but
reading http://dywicki.pl/2011/11/running-aspects-under-osgi-4-2-with-karaf/
it appears that Equinox offers another pre OSGI 4.3 solution. Although this
solution doesn't appear to (at least yet) use the 4.3 WeavingHook it does
appear to offer the ability of using the AspectJ syntax.

Has anything like this been ported/implemented for Felix? e.g. is it
possible to do AspectJ styled weaving in Felix (across bundles) or is the
only current option to implement a WeavingHook and write custom code for the
manipulation of the byte code?


Thanks,

Tim



--
View this message in context: http://apache-felix.18485.x6.nabble.com/Options-currently-available-for-weaving-in-Felix-tp5004386.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Options currently available for weaving in Felix?

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Hi

Do you know this project? I'm looking at Equinox Git and can't see 
anything about AspectJ and WeavingHook.

Best regards
Krzysztof


On 24.07.2013 05:33, Richard S. Hall wrote:
> On 7/23/13 17:29 , mit_jones wrote:
>> Can someone please advise on what options are currently available for 
>> weaving
>> in Felix?
>>
>> I have implemented an org.osgi.framework.hooks.weaving.WeavingHook 
>> combined
>> with Javassist for the bytecode manipulation. This seems to work okay 
>> but
>> reading 
>> http://dywicki.pl/2011/11/running-aspects-under-osgi-4-2-with-karaf/
>> it appears that Equinox offers another pre OSGI 4.3 solution. 
>> Although this
>> solution doesn't appear to (at least yet) use the 4.3 WeavingHook it 
>> does
>> appear to offer the ability of using the AspectJ syntax.
>>
>> Has anything like this been ported/implemented for Felix? e.g. is it
>> possible to do AspectJ styled weaving in Felix (across bundles) or is 
>> the
>> only current option to implement a WeavingHook and write custom code 
>> for the
>> manipulation of the byte code?
>
> I think that's it.
>
> However, I think there is a new Equinox framework in progress that is 
> trying to move away from its proprietary hooks toward the standard 
> OSGi hooks. So, maybe the AspectJ work will be ported too...you never 
> know.
>
> -> richard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Options currently available for weaving in Felix?

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 7/23/13 17:29 , mit_jones wrote:
> Can someone please advise on what options are currently available for weaving
> in Felix?
>
> I have implemented an org.osgi.framework.hooks.weaving.WeavingHook combined
> with Javassist for the bytecode manipulation. This seems to work okay but
> reading http://dywicki.pl/2011/11/running-aspects-under-osgi-4-2-with-karaf/
> it appears that Equinox offers another pre OSGI 4.3 solution. Although this
> solution doesn't appear to (at least yet) use the 4.3 WeavingHook it does
> appear to offer the ability of using the AspectJ syntax.
>
> Has anything like this been ported/implemented for Felix? e.g. is it
> possible to do AspectJ styled weaving in Felix (across bundles) or is the
> only current option to implement a WeavingHook and write custom code for the
> manipulation of the byte code?

I think that's it.

However, I think there is a new Equinox framework in progress that is 
trying to move away from its proprietary hooks toward the standard OSGi 
hooks. So, maybe the AspectJ work will be ported too...you never know.

-> richard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org