org.codehaus.plexus.component.configurator.converters

Interface ConfigurationConverter

public interface ConfigurationConverter

Method Summary
booleancanConvert(Class type)
ObjectfromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator)
ObjectfromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener)

Method Detail

canConvert

public boolean canConvert(Class type)

fromConfiguration

public Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator)

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

fromConfiguration

public 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