tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r567364 - in /incubator/tuscany/sandbox/rfeng/aop-logging/src: main/java/org/apache/tuscany/sca/aspectj/ test/java/org/apache/tuscany/sca/aspectj/
Date Sun, 19 Aug 2007 07:42:23 GMT
Author: rfeng
Date: Sun Aug 19 00:42:22 2007
New Revision: 567364

URL: http://svn.apache.org/viewvc?view=rev&rev=567364
Log:
Further refine the filter

Modified:
    incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/LoggingAspect.java
    incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/TracingAspect.java
    incubator/tuscany/sandbox/rfeng/aop-logging/src/test/java/org/apache/tuscany/sca/aspectj/MyTracingAspect.java

Modified: incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/LoggingAspect.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/LoggingAspect.java?view=diff&rev=567364&r1=567363&r2=567364
==============================================================================
--- incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/LoggingAspect.java
(original)
+++ incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/LoggingAspect.java
Sun Aug 19 00:42:22 2007
@@ -36,11 +36,11 @@
  */
 @Aspect
 public class LoggingAspect {
-    @Pointcut("call(* org.apache.tuscany..*(..))")
+    @Pointcut("call(* org.apache.tuscany.sca..*(..)) && (!within(org.apache.tuscany.sca.aspectj.*Aspect))")
     public void anyMethodCall() {
     }
     
-    @Pointcut("execution(* org.apache.tuscany..*(..))")
+    @Pointcut("execution(* org.apache.tuscany.sca..*(..)) && (!within(org.apache.tuscany.sca.aspectj.*Aspect))")
     public void anyMethodExecution() {
     }
     

Modified: incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/TracingAspect.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/TracingAspect.java?view=diff&rev=567364&r1=567363&r2=567364
==============================================================================
--- incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/TracingAspect.java
(original)
+++ incubator/tuscany/sandbox/rfeng/aop-logging/src/main/java/org/apache/tuscany/sca/aspectj/TracingAspect.java
Sun Aug 19 00:42:22 2007
@@ -43,9 +43,8 @@
     void start() {
     }
 
-    @Pointcut("cflow(entry()) && !cflowbelow(exit()) && !within(org.apache.tuscany.sca.aspectj.*Aspect+)")
+    @Pointcut("cflow(entry()) && !exit() && !cflowbelow(exit()) &&
!within(org.apache.tuscany.sca.aspectj.*Aspect)")
     void trace() {
-
     }
 
     @Pointcut("!handler(*) && !preinitialization(new(..))")

Modified: incubator/tuscany/sandbox/rfeng/aop-logging/src/test/java/org/apache/tuscany/sca/aspectj/MyTracingAspect.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/aop-logging/src/test/java/org/apache/tuscany/sca/aspectj/MyTracingAspect.java?view=diff&rev=567364&r1=567363&r2=567364
==============================================================================
--- incubator/tuscany/sandbox/rfeng/aop-logging/src/test/java/org/apache/tuscany/sca/aspectj/MyTracingAspect.java
(original)
+++ incubator/tuscany/sandbox/rfeng/aop-logging/src/test/java/org/apache/tuscany/sca/aspectj/MyTracingAspect.java
Sun Aug 19 00:42:22 2007
@@ -44,12 +44,12 @@
 
     @Override
     protected void logEnter(StaticPart jp) {
-        System.out.println("logEnter()");
+        System.out.println("> " + jp.getSignature());
     }
 
     @Override
     protected void logExit(StaticPart jp) {
-        System.out.println("logExit()");
+        System.out.println("< " + jp.getSignature());
     }
 
     @Override



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message