您的处理链中的工具需要模式吗?
那么问题就变成了如何组织不同的处理链。
The question then becomes how you organize the different possible chains of processing.
这个拦截器必须在标准认证拦截器之前 添加到协议处理链。
The interceptor must be added to the protocol processing chain before the standard authentication interceptors.
So in this case, one of the standard ways to do this, is to use what's called a linked list.
标准的处理方法是使用链表,我接下来也准备这么做。
But when you pass a parameter say, a list, you didn't think that you were not only passing the list, you were also passing the functions that operate on the list. In fact you are.
你不会认为你输入的不仅仅是链表,你还传递了处理链表的函数,实际上你正是这么做的,这往往不重要。
When you think about an int or a float or a dictionary or a list, you knew that there were functions that operated on them.
当你想到整型,浮点型,或者链表时,你知道可以用函数去处理他们,但是当你传递一个参数,例如链表。
应用推荐