org.codehaus.plexus.component.configurator.converters

Class AbstractConfigurationConverter

public abstract class AbstractConfigurationConverter extends Object implements ConfigurationConverter

Version: $Id: AbstractConfigurationConverter.java 6097 2007-03-15 15:29:27Z olamy $

Author: Michal Maczka

Field Summary
static StringIMPLEMENTATION
Method Summary
ObjectfromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator)
protected ObjectfromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator, Class type)
protected ObjectfromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator)
protected StringfromXML(String elementName)
protected ClassgetClassForImplementationHint(Class type, PlexusConfiguration configuration, ClassLoader classLoader)
We will check if user has provided a hint which class should be used for given field.
protected ObjectinstantiateObject(String classname, ClassLoader classLoader)
protected ObjectinstantiateObject(Class clazz)
protected ClassloadClass(String classname, ClassLoader classLoader)
protected StringtoXML(String fieldName)

Field Detail

IMPLEMENTATION

private static final String IMPLEMENTATION

Method Detail

fromConfiguration

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

fromExpression

protected Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator, Class type)

fromExpression

protected Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator)

fromXML

protected String fromXML(String elementName)

getClassForImplementationHint

protected Class getClassForImplementationHint(Class type, PlexusConfiguration configuration, ClassLoader classLoader)
We will check if user has provided a hint which class should be used for given field. So we will check if something like is present in configuraion. If 'implementation' hint was provided we will try to load correspoding class If we are unable to do so error will be reported

instantiateObject

protected Object instantiateObject(String classname, ClassLoader classLoader)

instantiateObject

protected Object instantiateObject(Class clazz)

loadClass

protected Class loadClass(String classname, ClassLoader classLoader)

toXML

protected String toXML(String fieldName)