Comments (2)
Havent thought about the name, i will give it a try. How do you want to use multiple filters?
Just like that i would say that the registration of the filter needs to happen only once as the filter itself is dynamic. Multiple mixins should be possible with the same filter name, but on other classes (if its not on Object). I dont know if you can mix MixIns.
from jackson-antpathfilter.
Take a look at the test class
https://github.com/Antibrumm/jackson-antpathfilter/blob/master/src/test/java/ch/mfrey/jackson/antpathfilter/test/AntPathFilterTest.java
Registering the filter by a name is not the same as using the filter to produce dynamic outcomes. Normal use case would be to register the filter once @JsonFilter("antPathFilterOtherName")
and register the filter on the ObjectMapper
with new SimpleFilterProvider().addFilter("antPathFilterOtherName", new AntPathPropertyFilter(filters));
I haven't tried this, but I would think that you could register multiple filter configurations at the same time with this approach. I myself did not have to do this in my project as the class Jackson2Helper
copies the ObjectMapper
and then applies the filter.
from jackson-antpathfilter.
Related Issues (12)
- how to: filtering of nested array objects HOT 5
- Support objects other than java beans HOT 4
- java.lang.OutOfMemoryError: GC overhead limit exceeded with version 1.0.2 HOT 1
- Spring Boot 2 (Spring 5): Cannot resolve PropertyFilter with id 'antPathFilter' HOT 3
- Filtering an array
- convertValue not working correctly with antpathfilter HOT 5
- Jackson2Helper and object mapper configuration is not threadsafe HOT 19
- Investigate performance improvement potential HOT 3
- Align exclusion pattern with NPM/Node style -> use ! instead of -
- Use with JAX-RS HOT 2
- addMixInAnnotations instead of addMixIn HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackson-antpathfilter.