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

java.lang.Object
  extended by org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
      extended by org.codehaus.plexus.component.configurator.converters.basic.EnumConverter
All Implemented Interfaces:
ConfigurationConverter

public class EnumConverter
extends AbstractConfigurationConverter

Author:
Benjamin Bentmann

Constructor Summary
EnumConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class type)
           
 java.lang.Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, java.lang.Class type, java.lang.Class baseType, java.lang.ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener)
           
 
Methods inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
failIfNotTypeCompatible, fromConfiguration, fromExpression, fromExpression, fromXML, getClassForImplementationHint, instantiateObject, instantiateObject, loadClass, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumConverter

public EnumConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class type)

fromConfiguration

public java.lang.Object fromConfiguration(ConverterLookup converterLookup,
                                          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
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 © 2010-2011 Sonatype, Inc.. All Rights Reserved.