MCPcopy Create free account
hub / github.com/castello/spring_basic / AopMain

Class AopMain

ch3/AopMain.java:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import java.util.regex.Pattern;
8
9public class AopMain {
10 public static void main(String[] args) throws Exception {
11 MyAdvice myAdvice = new MyAdvice();
12
13 Class myClass = Class.forName("com.fastcampus.ch3.aop.MyClass");
14 Object obj = myClass.newInstance();
15
16 for(Method m : myClass.getDeclaredMethods()) {
17 myAdvice.invoke(m, obj, null);
18 }
19 }
20}
21
22class MyAdvice {
23 Pattern p = Pattern.compile("a.*");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected