public abstract class AbstractConfigurationConverter extends java.lang.Object implements ConfigurationConverter
Constructor and Description |
---|
AbstractConfigurationConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fromConfiguration(ConverterLookup converterLookup,
PlexusConfiguration configuration,
java.lang.Class type,
java.lang.Class baseType,
java.lang.ClassLoader classLoader,
ExpressionEvaluator expressionEvaluator) |
protected java.lang.Object |
fromExpression(PlexusConfiguration configuration,
ExpressionEvaluator expressionEvaluator) |
protected java.lang.Object |
fromExpression(PlexusConfiguration configuration,
ExpressionEvaluator expressionEvaluator,
java.lang.Class type) |
protected java.lang.String |
fromXML(java.lang.String elementName) |
protected java.lang.Class |
getClassForImplementationHint(java.lang.Class type,
PlexusConfiguration configuration,
java.lang.ClassLoader classLoader)
We will check if user has provided a hint which class should be used for given field.
|
protected java.lang.Object |
instantiateObject(java.lang.Class clazz) |
protected java.lang.Object |
instantiateObject(java.lang.String classname,
java.lang.ClassLoader classLoader) |
protected java.lang.Class |
loadClass(java.lang.String classname,
java.lang.ClassLoader classLoader) |
protected java.lang.String |
toXML(java.lang.String fieldName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canConvert, fromConfiguration
protected java.lang.Class getClassForImplementationHint(java.lang.Class type, PlexusConfiguration configuration, java.lang.ClassLoader classLoader) throws ComponentConfigurationException
ComponentConfigurationException
protected java.lang.Class loadClass(java.lang.String classname, java.lang.ClassLoader classLoader) throws ComponentConfigurationException
ComponentConfigurationException
protected java.lang.Object instantiateObject(java.lang.String classname, java.lang.ClassLoader classLoader) throws ComponentConfigurationException
ComponentConfigurationException
protected java.lang.Object instantiateObject(java.lang.Class clazz) throws ComponentConfigurationException
ComponentConfigurationException
protected java.lang.String fromXML(java.lang.String elementName)
protected java.lang.String toXML(java.lang.String fieldName)
protected java.lang.Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator, java.lang.Class type) throws ComponentConfigurationException
ComponentConfigurationException
protected java.lang.Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator) throws ComponentConfigurationException
ComponentConfigurationException
public java.lang.Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, java.lang.Class type, java.lang.Class baseType, java.lang.ClassLoader classLoader, ExpressionEvaluator expressionEvaluator) throws ComponentConfigurationException
fromConfiguration
in interface ConfigurationConverter
converterLookup
- Repository of available converterstype
- the type of object to readbaseType
- the type of object the the source isclassLoader
- ClassLoader which should be used for loading classesexpressionEvaluator
- the expression evaluator to use for expressionsComponentConfigurationException