Caleb Cushing
10/31/2024, 2:16 PMProvider? https://jakarta.ee/specifications/dependency-injection/2.0/apidocs/jakarta/inject/provider ? does it have something like springs @Bean where I could inject into a Build Service and then inject said bean with that kind of Provider thinking that there's a better abstraction for what I'm doing, or at least there'd be a better abstraction if I was using spring.Gabriel Feo
10/31/2024, 2:17 PMCaleb Cushing
10/31/2024, 2:21 PMCaleb Cushing
10/31/2024, 2:22 PM@Configuration
class MyBuildService {
@Bean
public Foo foo()
return objectDerivedFromService;Caleb Cushing
10/31/2024, 2:24 PMclass Bar { @Inject Bar( Foo foo ) {} } or if Foo shouldn't be a singleton I could use Provider<Foo>Caleb Cushing
10/31/2024, 2:25 PMCaleb Cushing
10/31/2024, 2:26 PM@Bean but I can figure that outCaleb Cushing
10/31/2024, 2:28 PMThomas Broyer
10/31/2024, 2:29 PMGabriel Feo
10/31/2024, 2:36 PMVampire
10/31/2024, 4:04 PM@ServiceReference and then get the actual bean if the service is not the bean in question.Caleb Cushing
10/31/2024, 5:59 PMget() thats... mediocre but it'll doCaleb Cushing
10/31/2024, 6:00 PMValueSource I think I'm about ready to write a test... we'll seeCaleb Cushing
10/31/2024, 6:00 PM