aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tracing
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-09 15:52:23 +0000
committermwebster <mwebster>2006-08-09 15:52:23 +0000
commite42bdf150dc7dda76eacf36cdb8d7ea1baa75a9e (patch)
treeca888a933ad5b543e625644150eb7aa0fd00b6a1 /tests/tracing
parentfe2b911d4aaeb0fd1a853ff2a95bd501e1dccfe3 (diff)
downloadaspectj-e42bdf150dc7dda76eacf36cdb8d7ea1baa75a9e.tar.gz
aspectj-e42bdf150dc7dda76eacf36cdb8d7ea1baa75a9e.zip
Bug 150487 "Tracing and Logging Framework" (TraceMessageHandler)
Diffstat (limited to 'tests/tracing')
-rw-r--r--tests/tracing/ExcludedAspect.aj3
-rw-r--r--tests/tracing/IncludedAspect.aj3
-rw-r--r--tests/tracing/MyDefaultTraceMessageHandler.java12
-rw-r--r--tests/tracing/aop-defaulttracemessagehandler.xml13
4 files changed, 31 insertions, 0 deletions
diff --git a/tests/tracing/ExcludedAspect.aj b/tests/tracing/ExcludedAspect.aj
new file mode 100644
index 000000000..13cf4b753
--- /dev/null
+++ b/tests/tracing/ExcludedAspect.aj
@@ -0,0 +1,3 @@
+public aspect ExcludedAspect {
+
+} \ No newline at end of file
diff --git a/tests/tracing/IncludedAspect.aj b/tests/tracing/IncludedAspect.aj
new file mode 100644
index 000000000..3bd4d7007
--- /dev/null
+++ b/tests/tracing/IncludedAspect.aj
@@ -0,0 +1,3 @@
+public aspect IncludedAspect {
+
+} \ No newline at end of file
diff --git a/tests/tracing/MyDefaultTraceMessageHandler.java b/tests/tracing/MyDefaultTraceMessageHandler.java
new file mode 100644
index 000000000..b617568a6
--- /dev/null
+++ b/tests/tracing/MyDefaultTraceMessageHandler.java
@@ -0,0 +1,12 @@
+import org.aspectj.weaver.loadtime.TraceMessageHandler;
+import org.aspectj.weaver.tools.*;
+
+public class MyDefaultTraceMessageHandler extends TraceMessageHandler {
+
+ private static Trace trace = new DefaultTrace(MyDefaultTraceMessageHandler.class);
+
+ public MyDefaultTraceMessageHandler () {
+ super(trace);
+ trace.setTraceEnabled(true);
+ }
+} \ No newline at end of file
diff --git a/tests/tracing/aop-defaulttracemessagehandler.xml b/tests/tracing/aop-defaulttracemessagehandler.xml
new file mode 100644
index 000000000..bf1a587ee
--- /dev/null
+++ b/tests/tracing/aop-defaulttracemessagehandler.xml
@@ -0,0 +1,13 @@
+<aspectj>
+ <aspects>
+ <aspect name="IncludedAspect"/>
+ <aspect name="ExcludedAspect"/>
+
+ <concrete-aspect name="IncludedMissingAspect" extends="MissingAbstractAspect">
+ <pointcut name="pointcut" expression="within(*)"/>
+ </concrete-aspect>
+
+ <include within="Included*"/>
+ </aspects>
+ <weaver options="-verbose -Xlint:warning -XmessageHandlerClass:MyDefaultTraceMessageHandler"/>
+</aspectj> \ No newline at end of file