Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2022 09:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?

Ask questions and see you at March, 7th, 8.PM. CET:

Also checkout recent episode:


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

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.

Copy link

altuga commented Mar 7, 2022

What do think about anemic domain model?

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