You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Kristian Köhler <kr...@googlemail.com> on 2009/04/01 15:48:56 UTC
Felix and AOP
Hi
I want to use AOP within an OSGi based application and found "Equinox
Aspects". Is there an option to configure AOP within Felix?
Thanks!
Kristian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Felix and AOP
Posted by "Richard S. Hall" <he...@ungoverned.org>.
Well, from your other message, your bundle imports com.aspectj.runtime,
but not com.aspectj.lang. I am not sure if this is an issue or not, but
it makes me wonder.
Whether a bundle is started or not, should not impact class loading and
you were getting a class loading error in your other message.
-> richard
On 5/5/09 11:48 AM, Chris. A wrote:
> Hello,
>
> I am a new Felix user and wish to make use of AOP too :-)
>
> In my case, I don't expect to use LTW => I recompile the sources with 1 .aj
> aspect, prior to installing my "already weaved" bundle :
> => it works fine under EQUINOX with the adequate "java -Dosgi.bundles=..."
> option (saying which bundle(s) need to be started first !)
> => but I don't manage do the same (...) with FELIX, because I don't know
> what is the "equivalent" for it
>
> Have you maybe face this need too ? in such a case, how did you proceed ?
>
> Thanking you for any feedback you might have on this.
>
> Regards,
> Chris.
>
>
>
> Richard S. Hall wrote:
>
>> I think that uses Equinox-specific hooks to perform load-time weaving.
>> Felix does not provide any such hooking mechanism. It is possible we
>> will implement a similar hook because things like JPA need it too, but I
>> don't have a timeframe for this.
>>
>> -> richard
>>
>> On 4/1/09 11:22 AM, Kristian Köhler wrote:
>>
>>> Hi
>>>
>>> I'd like to use Spring AOP with load-time weaving. The idea is to
>>> deploy application bundles and some cross-cutting concerns like (for
>>> example) logging or transaction within an other bundle. The pointcut
>>> defintions should also be included in the logging bundle.
>>>
>>> Is it possible?
>>>
>>> Thanks,
>>> Kristian
>>>
>>> Stuart McCulloch wrote:
>>>
>>>> 2009/4/1 Kristian Köhler<kr...@googlemail.com>
>>>>
>>>>
>>>>> Hi
>>>>>
>>>>> I want to use AOP within an OSGi based application and found "Equinox
>>>>> Aspects". Is there an option to configure AOP within Felix?
>>>>>
>>>>>
>>>> what sort of AOP do you want - load-time weaving or dynamic proxies?
>>>> do you
>>>> want to use a specific AOP framework?
>>>>
>>>> Thanks!
>>>>
>>>>> Kristian
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>>
>>
>
>
Re: Felix and AOP
Posted by "Chris. A" <mo...@wanadoo.fr>.
Hello,
I am a new Felix user and wish to make use of AOP too :-)
In my case, I don't expect to use LTW => I recompile the sources with 1 .aj
aspect, prior to installing my "already weaved" bundle :
=> it works fine under EQUINOX with the adequate "java -Dosgi.bundles=..."
option (saying which bundle(s) need to be started first !)
=> but I don't manage do the same (...) with FELIX, because I don't know
what is the "equivalent" for it
Have you maybe face this need too ? in such a case, how did you proceed ?
Thanking you for any feedback you might have on this.
Regards,
Chris.
Richard S. Hall wrote:
>
> I think that uses Equinox-specific hooks to perform load-time weaving.
> Felix does not provide any such hooking mechanism. It is possible we
> will implement a similar hook because things like JPA need it too, but I
> don't have a timeframe for this.
>
> -> richard
>
> On 4/1/09 11:22 AM, Kristian Köhler wrote:
>> Hi
>>
>> I'd like to use Spring AOP with load-time weaving. The idea is to
>> deploy application bundles and some cross-cutting concerns like (for
>> example) logging or transaction within an other bundle. The pointcut
>> defintions should also be included in the logging bundle.
>>
>> Is it possible?
>>
>> Thanks,
>> Kristian
>>
>> Stuart McCulloch wrote:
>>> 2009/4/1 Kristian Köhler <kr...@googlemail.com>
>>>
>>>> Hi
>>>>
>>>> I want to use AOP within an OSGi based application and found "Equinox
>>>> Aspects". Is there an option to configure AOP within Felix?
>>>>
>>>
>>> what sort of AOP do you want - load-time weaving or dynamic proxies?
>>> do you
>>> want to use a specific AOP framework?
>>>
>>> Thanks!
>>>> Kristian
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Felix-and-AOP-tp22826861p23390253.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: Felix and AOP
Posted by "Richard S. Hall" <he...@ungoverned.org>.
I think that uses Equinox-specific hooks to perform load-time weaving.
Felix does not provide any such hooking mechanism. It is possible we
will implement a similar hook because things like JPA need it too, but I
don't have a timeframe for this.
-> richard
On 4/1/09 11:22 AM, Kristian Köhler wrote:
> Hi
>
> I'd like to use Spring AOP with load-time weaving. The idea is to
> deploy application bundles and some cross-cutting concerns like (for
> example) logging or transaction within an other bundle. The pointcut
> defintions should also be included in the logging bundle.
>
> Is it possible?
>
> Thanks,
> Kristian
>
> Stuart McCulloch wrote:
>> 2009/4/1 Kristian Köhler <kr...@googlemail.com>
>>
>>> Hi
>>>
>>> I want to use AOP within an OSGi based application and found "Equinox
>>> Aspects". Is there an option to configure AOP within Felix?
>>>
>>
>> what sort of AOP do you want - load-time weaving or dynamic proxies?
>> do you
>> want to use a specific AOP framework?
>>
>> Thanks!
>>> Kristian
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Felix and AOP
Posted by Kristian Köhler <kr...@googlemail.com>.
Hi
I'd like to use Spring AOP with load-time weaving. The idea is to deploy
application bundles and some cross-cutting concerns like (for example)
logging or transaction within an other bundle. The pointcut defintions
should also be included in the logging bundle.
Is it possible?
Thanks,
Kristian
Stuart McCulloch wrote:
> 2009/4/1 Kristian Köhler <kr...@googlemail.com>
>
>> Hi
>>
>> I want to use AOP within an OSGi based application and found "Equinox
>> Aspects". Is there an option to configure AOP within Felix?
>>
>
> what sort of AOP do you want - load-time weaving or dynamic proxies? do you
> want to use a specific AOP framework?
>
> Thanks!
>> Kristian
>>
>> ---------------------------------------------------------------------
>> 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: Felix and AOP
Posted by Stuart McCulloch <mc...@gmail.com>.
2009/4/1 Kristian Köhler <kr...@googlemail.com>
> Hi
>
> I want to use AOP within an OSGi based application and found "Equinox
> Aspects". Is there an option to configure AOP within Felix?
>
what sort of AOP do you want - load-time weaving or dynamic proxies? do you
want to use a specific AOP framework?
Thanks!
>
> Kristian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
--
Cheers, Stuart