summaryrefslogtreecommitdiffstats
path: root/tests/apt/src/Some.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/apt/src/Some.java')
-rw-r--r--tests/apt/src/Some.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/apt/src/Some.java b/tests/apt/src/Some.java
new file mode 100644
index 000000000..b47aa787e
--- /dev/null
+++ b/tests/apt/src/Some.java
@@ -0,0 +1,17 @@
+package test;
+
+public class Some {
+
+ public static void main(String[] args) {
+ Some some = new Some();
+ some.OnMethod1Event.add((emmiter) -> {
+ System.out.println("callback registered from before aspect");
+ });
+ some.method1();
+ }
+
+ @Event(Event.Order.Before)
+ public void method1() {
+ System.out.println("method1 is invoked");
+ }
+}