Replies: 2 comments 5 replies
-
@azzazzel Are you sure your condition matches? If you're sure everything's right, then we would probably need a reproducer. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey @gsmet I created a minimal reproducer here: https://github.com/azzazzel/quarkus-unremovable-issue As I changed how I get the bean and enabled debug, it now clearly indicates the bean is removed. When I run
I get:
If I uncomment the
in
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm building an extension that discovers some classes and adds a scope to them. My
BuildStep
looks like this:The processed classes and not injected anywhere, so from Quarkus perspective, they are "unused beans" and should be removed.
Thus the
unremovable()
. But it seems it doesn't work, I can't get the beans from the container after the application starts. It seems the classes have been removed after this step.If I annotate those classes with
@Unremovable
(or add them toquarkus.arc.unremovable-types
list), everything works as expected. However, this way each application needs to configure the unremovable classes. I'd like the extension to take care of that instead.Is this a bug, or am I doing something wrong, or am I making wrong assumptions about what
unremovable()
should do?Beta Was this translation helpful? Give feedback.
All reactions