Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
96thAirhacksQ&A.md

Ask questions and see you at March, 7th, 8.PM. CET: youtube.com/c/bienadam

Also checkout recent episode:

95th airhacks.tv

Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks

@thehpi
Copy link

thehpi commented Mar 7, 2022

I need an interceptor to intercept method calls but also use the parameter values to programmatically do metrics (because microprofile metrics cannot (yet) do dynamic tags).

But I don't want to use reflection to everytime find out what parameters there are on a method, and also parameter names are not available by default, and doing positional parameter assumptions is terrible.

Is it possible to create an annotation processor that programmatically creates na interceptor (or decorator?) which then is injected where I use it? The annotation processor then should scan for my (new) annotations used on parameters so I have knowledge about all parameters in my interceptor/decorator.

@altuga
Copy link

altuga commented Mar 7, 2022

What do think about anemic domain model? https://martinfowler.com/bliki/AnemicDomainModel.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment