Is there a way to register bean without any @Produces and ect annotations Quarkus

47 Views Asked by At

Is there a way to register bean into bean container without any annotation like @Producer @ApplicationScoped and so on I know there is a way for Spring https://www.baeldung.com/spring-5-functional-beans But I can't find any way for Quarkus. Unfortunately I have to register bean during some business case and I can't use annotation like Producer and so or What I have as an example

if(isApplied){
Config configuration = configService.createConfig();
// register configuration as a bean with bean name to have ability to Inject it after
} 

And this part of code I have not at startup. It's during rest api execution

0

There are 0 best solutions below