Article:
 |
|
Introduction to Aspect-Oriented Programming
|
| Subject: |
|
help needed regarding weaving |
| Date: |
|
2006-09-11 03:58:37 |
| From: |
|
piyush_batra
|
|
|
|
hi
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
<aspectwerkz>
<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"/>
</aspect>
</system>
</aspectwerkz>
note
expressionTesting is the name of the package
but this doesn't work out ...
seems there is some problem with the expression ....help me to get the correct expression
reply asap...
|
Showing messages 1 through 1 of 1.
-
help needed regarding weaving
2007-02-07 03:47:46
spring_framework
[View]
Please provide me appropriate link that can work in this application.
ur help is appretiable and helpful for me
thanks