Package org.robolectric.plugins
Class HierarchicalConfigurationStrategy.ConfigurationImpl
java.lang.Object
org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
- All Implemented Interfaces:
ConfigurationStrategy.Configuration
- Enclosing class:
- HierarchicalConfigurationStrategy
public static class HierarchicalConfigurationStrategy.ConfigurationImpl extends Object implements ConfigurationStrategy.Configuration
-
Constructor Summary
Constructors Constructor Description ConfigurationImpl()
-
Method Summary
Modifier and Type Method Description <T> T
get(Class<T> klass)
Returns the configuration instance of the specified class for the current test.Set<Class<?>>
keySet()
Returns the set of known configuration classes.Map<Class<?>,Object>
map()
Returns the map of known configuration classes to configuration instances.<T> void
put(Class<T> klass, T instance)
-
Constructor Details
-
ConfigurationImpl
public ConfigurationImpl()
-
-
Method Details
-
put
-
get
Description copied from interface:ConfigurationStrategy.Configuration
Returns the configuration instance of the specified class for the current test.- Specified by:
get
in interfaceConfigurationStrategy.Configuration
-
keySet
Description copied from interface:ConfigurationStrategy.Configuration
Returns the set of known configuration classes.- Specified by:
keySet
in interfaceConfigurationStrategy.Configuration
-
map
Description copied from interface:ConfigurationStrategy.Configuration
Returns the map of known configuration classes to configuration instances.- Specified by:
map
in interfaceConfigurationStrategy.Configuration
-