https://github.com/opentable/otj-filterorder
Servlet filter order resolver.
https://github.com/opentable/otj-filterorder
platform-java
Last synced: 7 months ago
JSON representation
Servlet filter order resolver.
- Host: GitHub
- URL: https://github.com/opentable/otj-filterorder
- Owner: opentable
- Created: 2018-05-08T18:28:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T17:17:43.000Z (over 1 year ago)
- Last Synced: 2024-05-14T00:26:33.551Z (about 1 year ago)
- Topics: platform-java
- Language: Java
- Size: 55.7 KB
- Stars: 0
- Watchers: 24
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
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.@Bean
public OrderDeclaration sampleOrderDeclaration() {
return OrderDeclaration
.of(FilterB.class)
.dependsOn(FilterA.class);
}See the classes' Javadocs for more detail.