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

Method matches

ch3/AopMain.java:25–28  ·  view source on GitHub ↗
(Method m)

Source from the content-addressed store, hash-verified

23 Pattern p = Pattern.compile("a.*");
24
25 boolean matches(Method m){
26 Matcher matcher = p.matcher(m.getName());
27 return matcher.matches();
28 }
29
30 void invoke(Method m, Object obj, Object... args) throws Exception {
31 if(m.getAnnotation(Transactional.class)!=null)

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected