Skip to content
Discussion options

You must be logged in to vote

It really works as designed. As explained in the docs the @LookupIfProperty can only be used to narrow down the set of beans that can be obtained by programmatic lookup via @Inject Instance<>. It's very similar to how CDI @Alternative and observers work. You can't inject the bean that is "hidden" by an @Alternative bean but the observers are still notified.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mkouba
Comment options

mkouba Jan 29, 2024
Collaborator

Answer selected by manofthepeace
@manofthepeace
Comment options

@mkouba
Comment options

mkouba Jan 29, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants