Loading configuration with @Provides methods currently requires a hack to inject a second type that is annotated with @ConfigurationSource. This change makes it possible to annotate the @Provides method with @ConfigurationSource to have the configuration loaded before the bean is provisioned. For example,
Loading configuration with @Provides methods currently requires a hack to inject a second type that is annotated with @ConfigurationSource. This change makes it possible to annotate the @Provides method with @ConfigurationSource to have the configuration loaded before the bean is provisioned. For example,
will result in foo.properties (and it's variants) being loaded before getFoo is called.