org.codehaus.plexus.component.configurator.converters
public interface ConfigurationConverter
Method Summary | |
---|---|
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) |
Parameters: converterLookup Repository of available converters configuration 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
Returns: the object
Throws: ComponentConfigurationException
UNKNOWN: a better way, instead of baseType, would be to pass in a factory for new classes that could be based from the given package
Parameters: converterLookup Repository of available converters configuration 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
Returns: the object
Throws: ComponentConfigurationException
UNKNOWN: a better way, instead of baseType, would be to pass in a factory for new classes that could be based from the given package