Introduction to Aspect-Oriented Programming
Subject:   help needed regarding weaving
Date:   2006-09-11 03:58:37
From:   piyush_batra

I want to weave my advice before and after public methods of public class. I tried using execution AND within pointcut() together to limit the scope...

The XML used is

<system id="AspectWerkzExample1">
<aspect class="expressionTesting.ExpressionAspect">
<pointcut name="greetMethod" expression="within(public expressionTesting.*) AND execution(public * *(..)) "/>
<advice name="beforeGreeting" type="before" bind-to="greetMethod"/>
<advice name="afterGreeting" type="after" bind-to="greetMethod"/>



expressionTesting is the name of the package

but this doesn't work out ...

seems there is some problem with the expression me to get the correct expression

reply asap...

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • help needed regarding weaving
    2007-02-07 03:47:46  spring_framework [View]

    we didn't get aspectwerkz environment from given sites as u provided in Introduction to Aspect-Oriented Programming.
    Please provide me appropriate link that can work in this application.
    ur help is appretiable and helpful for me