-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: interceptor filter pattern for serialization/deserialization common cases such as Message and KStream #441
Conversation
✅ Deploy Preview for springwolf-ui canceled.
|
Hi @SheheryarAamir The idea is that List-Extractor, Message- (and KStream- in cloud-stream) would implement the newly introduced interface. This might be a bit more tricky than expected.
Right now, we are unsure about the best solution. We can also imagine a single class that does handle all GenericTypes in one. And similar to resilience4j.ignoreException, a user can set the types which should be extracted via configuration: springwolf:
...:
payloadExtractor:
types:
- org.springframework.web.client.HttpServerErrorException
- java.io.IOException |
thank you @timonback. I have one question, how to extract payload type in we are using custom interface instead of |
Hi, sorry I forgot to update and good question. I am not sure if the current state is the final idea before the release. I imagine that the map of classes that can be extracted can be passed via properties configuration by the user. |
No, I dont think of any more entries other than already mentioned. But giving an option to user to put values in map solve most of the problem. |
Co-authored-by: Timon Back <[email protected]>
…g bean Co-authored-by: Timon Back <[email protected]>
Co-authored-by: Timon Back <[email protected]>
Co-authored-by: Timon Back <[email protected]>
Co-authored-by: Timon Back <[email protected]>
Implement the interceptor filter pattern. Each type has its own class (message, kstream, ...). This allows users to specify their own or (de)activate them. And it opens up the extension point via bean injection and ordering
Relates to #433