项目作者: opentable

项目描述 :
Servlet filter order resolver.
高级语言: Java
项目地址: git://github.com/opentable/otj-filterorder.git
创建时间: 2018-05-08T18:28:25Z
项目社区:https://github.com/opentable/otj-filterorder

开源协议:

下载


The filter order dependency resolver accepts dependency declarations in
the form of injected beans and reorders servlet filters in order to
accord to the desired dependencies.

Here is an example. In it, B is said to depend on A, so in the final
ordering, A will come before B.

  1. @Bean
  2. public OrderDeclaration sampleOrderDeclaration() {
  3. return OrderDeclaration
  4. .of(FilterB.class)
  5. .dependsOn(FilterA.class);
  6. }

See the classes’ Javadocs for more detail.