fromConfiguration
public Object fromConfiguration(ConverterLookup converterLookup,
PlexusConfiguration configuration,
Class type,
Class baseType,
ClassLoader classLoader,
ExpressionEvaluator expressionEvaluator,
ConfigurationListener listener)
throws ComponentConfigurationException
- Specified by:
fromConfiguration
in interface ConfigurationConverter
- Overrides:
fromConfiguration
in class AbstractBasicConverter
- Parameters:
converterLookup
- Repository of available converters
configuration
- PlexusConfiguration
type
- the type of object to read
baseType
- the type of object the the source is
classLoader
- ClassLoader which should be used for loading classes
expressionEvaluator
- the expression evaluator to use for expressions
listener
- ConfigurationListener
.
- Returns:
- the object
- Throws:
ComponentConfigurationException
- in case of an error.
TODO: a better way, instead of baseType, would be to pass in a factory for new classes that could be based from the given package