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

Method invoke

ch3/AopMain.java:30–38  ·  view source on GitHub ↗
(Method m, Object obj, Object... args)

Source from the content-addressed store, hash-verified

28 }
29
30 void invoke(Method m, Object obj, Object... args) throws Exception {
31 if(m.getAnnotation(Transactional.class)!=null)
32 System.out.println("[before]{");
33
34 m.invoke(obj, args); // aaa(), aaa2(), bbb() 호출가능
35
36 if(m.getAnnotation(Transactional.class)!=null)
37 System.out.println("}[after]");
38 }
39}
40
41class MyClass {

Callers 6

mainMethod · 0.95
mainMethod · 0.80
serviceMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
dataBindMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected