public static < C > Module configModuleWithOverrides ( final Class < C > configInterface , OverrideConsumer < C > overrideConsumer ) { checkNotNull ( configInterface ) ; checkNotNull ( overrideConsumer ) ; return configModuleWithOverrides ( configInterface , Optional . empty ( ) , Optional . ofNullable ( overrideConsumer ) ) ; }
Generates a Guice Module for use with Injector creation . THe generate Guice module binds a number of support classes to service a dynamically generate implementation of the provided configuration interface . This method further overrides the annotated defaults on the configuration class as per the code in the given overrideConsumer