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

ArC: add ability to initialize synthetic beans eagerly #41159

Closed
edeandrea opened this issue Jun 12, 2024 · 3 comments · Fixed by #41169
Closed

ArC: add ability to initialize synthetic beans eagerly #41159

edeandrea opened this issue Jun 12, 2024 · 3 comments · Fixed by #41169
Assignees
Labels
area/arc Issue related to ARC (dependency injection) kind/enhancement New feature or request
Milestone

Comments

@edeandrea
Copy link
Contributor

Description

Currently when creating a bean via SyntheticBeanBuildItem.ExtendedBeanConfigurator there is no way to mark that bean as @Startup. This would be a good idea.

This idea came from this conversation: https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Way.20to.20mark.20bean.20as.20Startup.3F

Implementation ideas

No response

@edeandrea edeandrea added the kind/enhancement New feature or request label Jun 12, 2024
Copy link

quarkus-bot bot commented Jun 12, 2024

You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip

This message is automatically generated by a bot.

@mkouba mkouba added the area/arc Issue related to ARC (dependency injection) label Jun 12, 2024
@mkouba mkouba changed the title Add ability to create synthetic observer methods to beans ArC: add ability to initialize synthetic beans eagerly Jun 12, 2024
Copy link

quarkus-bot bot commented Jun 12, 2024

/cc @Ladicek (arc), @manovotn (arc)

@edeandrea
Copy link
Contributor Author

Something like this would be great!

SyntheticBeanBuildItem.configure(SOME_BEAN)
  .defaultBean()
  .scope(ApplicationScoped.class)
  ...
  .makeStartup()
  ...
  .done()

Maybe synthetic bean is the wrong word/term, but some way to produce some kind of build item which is marked as @Startup.

@mkouba mkouba self-assigned this Jun 12, 2024
mkouba added a commit to mkouba/quarkus that referenced this issue Jun 12, 2024
mkouba added a commit to mkouba/quarkus that referenced this issue Jun 12, 2024
@quarkus-bot quarkus-bot bot added this to the 3.13 - main milestone Jun 13, 2024
holly-cummins pushed a commit to holly-cummins/quarkus that referenced this issue Jul 31, 2024
danielsoro pushed a commit to danielsoro/quarkus that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection) kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants