1 16 17 package org.springframework.aop; 18 19 import java.io.Serializable ; 20 import java.lang.reflect.Method ; 21 22 27 class TrueMethodMatcher implements MethodMatcher, Serializable { 28 29 public static final TrueMethodMatcher INSTANCE = new TrueMethodMatcher(); 30 31 34 private TrueMethodMatcher() { 35 } 36 37 public boolean isRuntime() { 38 return false; 39 } 40 41 public boolean matches(Method method, Class targetClass) { 42 return true; 43 } 44 45 public boolean matches(Method method, Class targetClass, Object [] args) { 46 throw new UnsupportedOperationException (); 48 } 49 50 55 private Object readResolve() { 56 return INSTANCE; 57 } 58 59 public String toString() { 60 return "MethodMatcher.TRUE"; 61 } 62 63 } 64 | Popular Tags |