You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Douglas Leite <do...@apache.org> on 2010/04/27 19:20:16 UTC

Support of AspectJ on Tuscany SCA

I have noticed that aspectj can be used on Tuscany SCA via annotations based
development style. Instead of that, could I use the traditional AspectJ
code-based style of aspect declaration, i.e., the *.aj files?

Thanks,

-- 
Douglas Siqueira Leite
Graduate student at University of Campinas (Unicamp), Brazil

Re: Support of AspectJ on Tuscany SCA

Posted by kelvin goodson <kg...@thegoodsons.org.uk>.
On Tue, May 11, 2010 at 1:54 PM, kelvin goodson <kg...@thegoodsons.org.uk> wrote:
> FYI I just updated the wiki page to mention the fact that you can run
> the calculator sample with aspectj trace enabled, by executing the
> command "ant runtraced".

Note the "ant runtraced" variant of the calculator sample is only in
the 2.x stream, so I have moved that wiki update into a copy of the
page in the 2.x documentation area of the wiki  [1]

[1] https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Logging,+Tracing+and+Timing

>
> Kelvin.
>
> On Mon, May 10, 2010 at 9:28 PM, Luciano Resende <lu...@gmail.com> wrote:
>> On Mon, May 10, 2010 at 1:15 PM, Douglas Leite <do...@gmail.com> wrote:
>>> I found a solution for this problem by setting some dependencies and
>>> plug-ins into the build.xml file:
>>>
>>>         <dependency>
>>>             <groupId>org.aspectj</groupId>
>>>             <artifactId>aspectjrt</artifactId>
>>>             <version>1.6.7</version>
>>>             <scope>compile</scope>
>>>         </dependency>
>>>
>>> ------------------------------------------------------------
>>>
>>>             <plugin>
>>>                 <groupId>org.codehaus.mojo</groupId>
>>>                 <artifactId>aspectj-maven-plugin</artifactId>
>>>                 <version>1.3</version>
>>>                 <configuration>
>>>                     <verbose>true</verbose>
>>>                     <privateScope>true</privateScope>
>>>                     <complianceLevel>1.5</complianceLevel>
>>>                 </configuration>
>>>                 <executions>
>>>                     <execution>
>>>                         <goals>
>>>                             <goal>compile</goal>
>>>                             <goal>test-compile</goal>
>>>                         </goals>
>>>                     </execution>
>>>                 </executions>
>>>             </plugin>
>>>
>>> On Tue, Apr 27, 2010 at 2:20 PM, Douglas Leite <do...@apache.org>
>>> wrote:
>>>>
>>>> I have noticed that aspectj can be used on Tuscany SCA via annotations
>>>> based development style. Instead of that, could I use the traditional
>>>> AspectJ code-based style of aspect declaration, i.e., the *.aj files?
>>>>
>>>> Thanks,
>>>>
>>>> --
>>>> Douglas Siqueira Leite
>>>> Graduate student at University of Campinas (Unicamp), Brazil
>>>>
>>>
>>>
>>>
>>> --
>>> Douglas Siqueira Leite
>>> Graduate student at University of Campinas (Unicamp), Brazil
>>>
>>>
>>
>> Great, how about updating the wiki [1] with this info ?
>>
>> [1] https://cwiki.apache.org/confluence/display/TUSCANY/Logging,+Tracing,+and+Timing+in+Tuscany
>>
>>
>> --
>> Luciano Resende
>> http://people.apache.org/~lresende
>> http://twitter.com/lresende1975
>> http://lresende.blogspot.com/
>>
>

Re: Support of AspectJ on Tuscany SCA

Posted by kelvin goodson <kg...@thegoodsons.org.uk>.
FYI I just updated the wiki page to mention the fact that you can run
the calculator sample with aspectj trace enabled, by executing the
command "ant runtraced".

Kelvin.

On Mon, May 10, 2010 at 9:28 PM, Luciano Resende <lu...@gmail.com> wrote:
> On Mon, May 10, 2010 at 1:15 PM, Douglas Leite <do...@gmail.com> wrote:
>> I found a solution for this problem by setting some dependencies and
>> plug-ins into the build.xml file:
>>
>>         <dependency>
>>             <groupId>org.aspectj</groupId>
>>             <artifactId>aspectjrt</artifactId>
>>             <version>1.6.7</version>
>>             <scope>compile</scope>
>>         </dependency>
>>
>> ------------------------------------------------------------
>>
>>             <plugin>
>>                 <groupId>org.codehaus.mojo</groupId>
>>                 <artifactId>aspectj-maven-plugin</artifactId>
>>                 <version>1.3</version>
>>                 <configuration>
>>                     <verbose>true</verbose>
>>                     <privateScope>true</privateScope>
>>                     <complianceLevel>1.5</complianceLevel>
>>                 </configuration>
>>                 <executions>
>>                     <execution>
>>                         <goals>
>>                             <goal>compile</goal>
>>                             <goal>test-compile</goal>
>>                         </goals>
>>                     </execution>
>>                 </executions>
>>             </plugin>
>>
>> On Tue, Apr 27, 2010 at 2:20 PM, Douglas Leite <do...@apache.org>
>> wrote:
>>>
>>> I have noticed that aspectj can be used on Tuscany SCA via annotations
>>> based development style. Instead of that, could I use the traditional
>>> AspectJ code-based style of aspect declaration, i.e., the *.aj files?
>>>
>>> Thanks,
>>>
>>> --
>>> Douglas Siqueira Leite
>>> Graduate student at University of Campinas (Unicamp), Brazil
>>>
>>
>>
>>
>> --
>> Douglas Siqueira Leite
>> Graduate student at University of Campinas (Unicamp), Brazil
>>
>>
>
> Great, how about updating the wiki [1] with this info ?
>
> [1] https://cwiki.apache.org/confluence/display/TUSCANY/Logging,+Tracing,+and+Timing+in+Tuscany
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>

Re: Support of AspectJ on Tuscany SCA

Posted by Luciano Resende <lu...@gmail.com>.
On Mon, May 10, 2010 at 1:15 PM, Douglas Leite <do...@gmail.com> wrote:
> I found a solution for this problem by setting some dependencies and
> plug-ins into the build.xml file:
>
>         <dependency>
>             <groupId>org.aspectj</groupId>
>             <artifactId>aspectjrt</artifactId>
>             <version>1.6.7</version>
>             <scope>compile</scope>
>         </dependency>
>
> ------------------------------------------------------------
>
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>aspectj-maven-plugin</artifactId>
>                 <version>1.3</version>
>                 <configuration>
>                     <verbose>true</verbose>
>                     <privateScope>true</privateScope>
>                     <complianceLevel>1.5</complianceLevel>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <goals>
>                             <goal>compile</goal>
>                             <goal>test-compile</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>
> On Tue, Apr 27, 2010 at 2:20 PM, Douglas Leite <do...@apache.org>
> wrote:
>>
>> I have noticed that aspectj can be used on Tuscany SCA via annotations
>> based development style. Instead of that, could I use the traditional
>> AspectJ code-based style of aspect declaration, i.e., the *.aj files?
>>
>> Thanks,
>>
>> --
>> Douglas Siqueira Leite
>> Graduate student at University of Campinas (Unicamp), Brazil
>>
>
>
>
> --
> Douglas Siqueira Leite
> Graduate student at University of Campinas (Unicamp), Brazil
>
>

Great, how about updating the wiki [1] with this info ?

[1] https://cwiki.apache.org/confluence/display/TUSCANY/Logging,+Tracing,+and+Timing+in+Tuscany


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Support of AspectJ on Tuscany SCA

Posted by Douglas Leite <do...@gmail.com>.
I found a solution for this problem by setting some dependencies and
plug-ins into the build.xml file:

        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>1.6.7</version>
            <scope>compile</scope>
        </dependency>

------------------------------------------------------------

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <version>1.3</version>
                <configuration>
                    <verbose>true</verbose>
                    <privateScope>true</privateScope>
                    <complianceLevel>1.5</complianceLevel>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>test-compile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

On Tue, Apr 27, 2010 at 2:20 PM, Douglas Leite <do...@apache.org>wrote:

> I have noticed that aspectj can be used on Tuscany SCA via annotations
> based development style. Instead of that, could I use the traditional
> AspectJ code-based style of aspect declaration, i.e., the *.aj files?
>
> Thanks,
>
> --
> Douglas Siqueira Leite
> Graduate student at University of Campinas (Unicamp), Brazil
>
>


-- 
Douglas Siqueira Leite
Graduate student at University of Campinas (Unicamp), Brazil