Skip to content
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

SmallRye Config @Priority order in interceptors #1254

Closed
emilianocolon opened this issue Nov 27, 2024 · 2 comments
Closed

SmallRye Config @Priority order in interceptors #1254

emilianocolon opened this issue Nov 27, 2024 · 2 comments

Comments

@emilianocolon
Copy link

Hi there,

When using the @priority(1) annotation in ConfigSourceInterceptor, do smaller numbers mean the interceptor runs earlier in the chain or viceversa?

@radcortez
Copy link
Member

Good question!

While priority usually means that the lower the number, the higher in the stack to execute, we use higher the number, higher to execute, because of ConfigSource ordinal and Converter, and we didn't want to introduce a different behaviour. Check:

@emilianocolon
Copy link
Author

Thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants