public interface ConfigurationConverter
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
Object |
fromConfiguration(ConverterLookup converterLookup,
PlexusConfiguration configuration,
Class type,
Class baseType,
ClassLoader classLoader,
ExpressionEvaluator expressionEvaluator) |
Object |
fromConfiguration(ConverterLookup converterLookup,
PlexusConfiguration configuration,
Class type,
Class baseType,
ClassLoader classLoader,
ExpressionEvaluator expressionEvaluator,
ConfigurationListener listener) |
boolean canConvert(Class type)
Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator) throws ComponentConfigurationException
converterLookup
- Repository of available convertersconfiguration
- PlexusConfiguration
type
- the type of object to readbaseType
- the type of object the the source isclassLoader
- ClassLoader which should be used for loading classesexpressionEvaluator
- the expression evaluator to use for expressionsComponentConfigurationException
- 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 packageObject fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener) throws ComponentConfigurationException
converterLookup
- Repository of available convertersconfiguration
- PlexusConfiguration
type
- the type of object to readbaseType
- the type of object the the source isclassLoader
- ClassLoader which should be used for loading classesexpressionEvaluator
- the expression evaluator to use for expressionslistener
- ConfigurationListener
.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 packageCopyright © 2001–2019 Codehaus Plexus. All rights reserved.