com.github.datalking.aop.TrueMethodMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play-mvc Show documentation
Show all versions of play-mvc Show documentation
simple mvc framework based on java servlet.
The newest version!
package com.github.datalking.aop;
import java.io.Serializable;
import java.lang.reflect.Method;
/**
* @author yaoo on 4/18/18
*/
public class TrueMethodMatcher implements MethodMatcher, Serializable {
public static final TrueMethodMatcher INSTANCE = new TrueMethodMatcher();
private TrueMethodMatcher() {
}
@Override
public boolean isRuntime() {
return false;
}
@Override
public boolean matches(Method method, Class> targetClass) {
return true;
}
@Override
public boolean matches(Method method, Class> targetClass, Object... args) {
throw new UnsupportedOperationException();
}
private Object readResolve() {
return INSTANCE;
}
@Override
public String toString() {
return "MethodMatcher.TRUE";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy