Interface SpringRainbowGumServiceProvider
public interface SpringRainbowGumServiceProvider
Provides a custom Spring Boot aware RainbowGum through
META-INF/spring.factories
. The reason this SPI exists is if one wants to
create a custom Rainbow Gum that has spring configuration available. Besides providing
Spring environment the other reason the RainbowGumServiceProvider
is not used
is because this module has a registration of RainbowGumServiceProvider.RainbowGumProvider
that is used
for Spring Boot initialization (the events are queued) that is then replaced with the
Spring Boot configuration powered RainbowGum.-
Method Summary
Modifier and TypeMethodDescriptionprovide
(LogConfig config, ClassLoader classLoader, org.springframework.core.env.Environment environment) Provides a Rainbow Gum that has configuration already Spring Bootified.
-
Method Details
-
provide
Optional<RainbowGum> provide(LogConfig config, ClassLoader classLoader, org.springframework.core.env.Environment environment) Provides a Rainbow Gum that has configuration already Spring Bootified.- Parameters:
config
- config that is setup to use Spring Boot environment.classLoader
- class loader used by Spring Boot.environment
- Spring environment.- Returns:
- optional provides.
-