public abstract class ConfigSeeders
extends java.lang.Object
| Constructor and Description |
|---|
ConfigSeeders() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.inject.binder.LinkedBindingBuilder<ConfigSeeder> |
bind(com.google.inject.Binder binder,
java.lang.Class<? extends java.lang.annotation.Annotation> annot) |
static void |
bind(com.google.inject.Binder binder,
java.lang.Class<? extends java.lang.annotation.Annotation> annot,
com.netflix.archaius.Config config) |
static void |
bind(com.google.inject.Binder binder,
java.lang.Class<? extends java.lang.annotation.Annotation> annot,
java.util.Properties props) |
static void |
bind(com.google.inject.Binder binder,
com.netflix.archaius.Config config,
java.lang.Class<? extends java.lang.annotation.Annotation> annot)
Deprecated.
|
static void |
bind(com.google.inject.Binder binder,
java.util.Properties props,
java.lang.Class<? extends java.lang.annotation.Annotation> annot)
Deprecated.
|
static ConfigSeeder |
from(com.netflix.archaius.Config config) |
static ConfigSeeder |
from(java.util.Properties prop) |
@Deprecated
public static void bind(com.google.inject.Binder binder,
java.util.Properties props,
java.lang.Class<? extends java.lang.annotation.Annotation> annot)
public class MyModule extends AbstractModule() {
protected void configure() {
Properties props = new Properties();
props.setProperty("name", "value");
ConfigSeeders.bind(binder(), props, RuntimeLayer.class);
}
}
binder - props - annot - public static void bind(com.google.inject.Binder binder,
java.lang.Class<? extends java.lang.annotation.Annotation> annot,
java.util.Properties props)
@Deprecated
public static void bind(com.google.inject.Binder binder,
com.netflix.archaius.Config config,
java.lang.Class<? extends java.lang.annotation.Annotation> annot)
public class MyModule extends AbstractModule() {
protected void configure() {
ConfigSeeders.bind(binder(),
MapConfig.builder()
.put("name", "value")
.build(),
RuntimeLayer.class);
}
}
binder - props - annot - public static void bind(com.google.inject.Binder binder,
java.lang.Class<? extends java.lang.annotation.Annotation> annot,
com.netflix.archaius.Config config)
public static com.google.inject.binder.LinkedBindingBuilder<ConfigSeeder> bind(com.google.inject.Binder binder, java.lang.Class<? extends java.lang.annotation.Annotation> annot)
public static ConfigSeeder from(java.util.Properties prop)
public static ConfigSeeder from(com.netflix.archaius.Config config)