add new features into the interceptor pattern

来源:互联网 发布:spring 高级编程 编辑:程序博客网 时间:2024/04/28 11:02

I got a program writtern base on Spring. It adopt Interceptor pattern.

What I need to do is to enhance the config to allow custom interceptor be inserted into the original interceptors chain. The interceptor list is injected into the target bean by the constructor.

My consider 1:

two place should be allowed for the custom interceptor since the interceptors in the chain are invoked sequencely.