org.codehaus.plexus.component.configurator.converters.basic

Class AbstractBasicConverter

Implemented Interfaces:
ConfigurationConverter
Known Direct Subclasses:
BooleanConverter, ByteConverter, CharConverter, DateConverter, DoubleConverter, FileConverter, FloatConverter, IntConverter, LongConverter, ShortConverter, StringBufferConverter, StringConverter, UrlConverter

public abstract class AbstractBasicConverter
extends AbstractConfigurationConverter

Version:
$Id: AbstractBasicConverter.java 2634 2005-10-08 06:33:08Z brett $

Field Summary

Fields inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter

IMPLEMENTATION

Method Summary

Object
fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener)
protected abstract Object
fromString(String str)

Methods inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter

fromConfiguration, fromExpression, fromExpression, fromXML, getClassForImplementationHint, instantiateObject, instantiateObject, loadClass, toXML

Method Details

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
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

fromString

protected abstract Object fromString(String str)
            throws ComponentConfigurationException