Interface Configuration
-
public interface ConfigurationEncapsulates the configuration of the exporter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getArguments()StringgetId()<T> Tinstantiate(Class<T> configClass)Helper method to instantiate an object of typeConfigurationbased on the map of arguments (seegetArguments().
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- the configured ID of the exporter
-
getArguments
Map<String,Object> getArguments()
- Returns:
- raw map of the parsed arguments from the configuration file
-
instantiate
<T> T instantiate(Class<T> configClass)
Helper method to instantiate an object of typeConfigurationbased on the map of arguments (seegetArguments().Will map argument keys to field names; if no field is present for a key, it will be ignored. If no key is present for a field, it will also be ignored (and retain its initial value).
- Parameters:
configClass- class to instantiate- Returns:
- instantiated configuration class
-
-