public abstract class Provider<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Provider.Scope |
Constructor and Description |
---|
Provider(Configurator configurator,
Configuration config)
Creates a new provider instance.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
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.
|
Configuration |
getConfig() |
Configurator |
getConfigurator() |
abstract String |
getPath()
Returns the path in the configuration file for the components.
|
Provider.Scope |
getScope()
Returns the scope of the
|
abstract Class<T> |
getType()
Returns the base class or interface that the class provides.
|
public Provider(Configurator configurator, Configuration config) throws ConfigurationException
configurator
- config
- ConfigurationException
public abstract Class<T> getType()
public abstract String getPath()
public Provider.Scope getScope()
public abstract T get(String name, com.typesafe.config.Config config, Map<String,String> runtimeParams) throws ConfigurationException
ConfigurationException
public Configurator getConfigurator()
public Configuration getConfig()
Copyright © 2018. All rights reserved.