strtus中Interceptor和AbstractInterceptor区别
Interceptor类
public interface Interceptor extends Serializable {
void destroy();
void init();
String intercept(ActionInvocation var1) throws Exception;
}
AbstractInterceptor类
public abstract class AbstractInterceptor implements Interceptor {
public AbstractInterceptor() {
}
public void init() {
}
public void destroy() {
}
public abstract String intercept(ActionInvocation var1) throws Exception;
}
AbstractInterceptor空实现了 init() 和destroy(),如果只需要intercept(ActionInvocation var1)可以继承AbstractInterceptor抽象类