summaryrefslogtreecommitdiffstats
path: root/docs/sandbox/common/tracing/TraceMyJoinPoints.java
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sandbox/common/tracing/TraceMyJoinPoints.java')
-rw-r--r--docs/sandbox/common/tracing/TraceMyJoinPoints.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/sandbox/common/tracing/TraceMyJoinPoints.java b/docs/sandbox/common/tracing/TraceMyJoinPoints.java
new file mode 100644
index 000000000..a5aa686d6
--- /dev/null
+++ b/docs/sandbox/common/tracing/TraceMyJoinPoints.java
@@ -0,0 +1,17 @@
+
+
+// START-SAMPLE tracing-traceJoinPoints Trace to log join points executed by main method
+/* TraceMyJoinPoints.java */
+
+package tracing;
+
+import com.company.app.Main;
+
+/**
+ * Trace all join points in company application.
+ * @author Jim Hugunin, Wes Isberg
+ */
+aspect TraceMyJoinPoints extends TraceJoinPoints {
+ protected pointcut entry() : execution(void Main.runMain(String[]));
+}
+// END-SAMPLE tracing-traceJoinPoints