Package | Description |
---|---|
org.wikibrain.conf |
Modifier and Type | Method and Description |
---|---|
<T> T |
Configurator.construct(Class<T> klass,
String name,
com.typesafe.config.Config conf,
Map<String,String> runtimeParams)
Constructs an instance of the specified class with the passed
in config.
|
<T> T |
Configurator.get(Class<T> klass)
Get a specific named instance of the component with the specified class.
|
<T> T |
Configurator.get(Class<T> klass,
String name) |
<T> T |
Configurator.get(Class<T> klass,
String name,
Map<String,String> runtimeParams)
Get a specific named instance of the component with the specified class.
|
<T> T |
Configurator.get(Class<T> klass,
String name,
String runtimeKey,
String runtimeValue)
Get a component with a single runtime parameter
|
abstract T |
Provider.get(String name,
com.typesafe.config.Config config,
Map<String,String> runtimeParams)
Should return a configured instance of the requested class,
or null if it cannot be created by this provider.
|
com.typesafe.config.Config |
Configurator.getConfig(Class klass,
String name)
Returns the config object associated with the given class and name.
|
String |
Configurator.resolveComponentName(Class klass,
String name)
If the component name is "default" or null, return the name of the default implementation of the compoenent.
|
Constructor and Description |
---|
Configurator(Configuration conf)
Constructs a new configuration object with the specified configuration.
|
Provider(Configurator configurator,
Configuration config)
Creates a new provider instance.
|
Copyright © 2018. All rights reserved.