public class SettingsBuilder<T> extends Object implements com.google.inject.Provider<Settings<T>>
| Modifier and Type | Method and Description |
|---|---|
Settings<T> |
get() |
void |
setConfig(com.typesafe.config.Config config) |
static <T> SettingsBuilder<T> |
with(com.google.inject.Binder binder,
Class<T> cls)
Binds the annotations of the supplied configuration enum as guice names with the values obtained from
typesafe config.
|
public static <T> SettingsBuilder<T> with(com.google.inject.Binder binder, Class<T> cls)
T - the type literal of the enum for instance PersisterConfbinder - current Guice bindercls - the enum class with annotations@Inject public void setConfig(com.typesafe.config.Config config)
Copyright © 2022 NorStella. All rights reserved.