org.codehaus.plexus.component.configurator.converters
Interface ConfigurationConverter

All Known Implementing Classes:
AbstractBasicConverter, AbstractConfigurationConverter, ArrayConverter, BooleanConverter, ByteConverter, CharConverter, ClassConverter, ClassRealmConverter, CollectionConverter, DateConverter, DoubleConverter, FileConverter, FloatConverter, IntConverter, LongConverter, MapConverter, ObjectWithFieldsConverter, PlexusConfigurationConverter, PropertiesConverter, ShortConverter, StringBufferConverter, StringConverter, UrlConverter

public interface ConfigurationConverter


Method Summary
 boolean canConvert(java.lang.Class type)
           
 java.lang.Object fromConfiguration(ConverterLookup converterLookup, org.codehaus.plexus.configuration.PlexusConfiguration configuration, java.lang.Class type, java.lang.Class baseType, java.lang.ClassLoader classLoader, ExpressionEvaluator expressionEvaluator)
           
 java.lang.Object fromConfiguration(ConverterLookup converterLookup, org.codehaus.plexus.configuration.PlexusConfiguration configuration, java.lang.Class type, java.lang.Class baseType, java.lang.ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener)
           
 

Method Detail

canConvert

boolean canConvert(java.lang.Class type)

fromConfiguration

java.lang.Object fromConfiguration(ConverterLookup converterLookup,
                                   org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                   java.lang.Class type,
                                   java.lang.Class baseType,
                                   java.lang.ClassLoader classLoader,
                                   ExpressionEvaluator expressionEvaluator)
                                   throws ComponentConfigurationException
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

fromConfiguration

java.lang.Object fromConfiguration(ConverterLookup converterLookup,
                                   org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                   java.lang.Class type,
                                   java.lang.Class baseType,
                                   java.lang.ClassLoader classLoader,
                                   ExpressionEvaluator expressionEvaluator,
                                   ConfigurationListener listener)
                                   throws ComponentConfigurationException
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


Copyright © 2001-2007 Codehaus. All Rights Reserved.