public abstract class AbstractConfigurationConverter extends Object implements ConfigurationConverter
| Constructor and Description |
|---|
AbstractConfigurationConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromConfiguration(ConverterLookup converterLookup,
PlexusConfiguration configuration,
Class type,
Class baseType,
ClassLoader classLoader,
ExpressionEvaluator expressionEvaluator) |
protected Object |
fromExpression(PlexusConfiguration configuration,
ExpressionEvaluator expressionEvaluator) |
protected Object |
fromExpression(PlexusConfiguration configuration,
ExpressionEvaluator expressionEvaluator,
Class type) |
protected String |
fromXML(String elementName) |
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.
|
protected Object |
instantiateObject(Class clazz) |
protected Object |
instantiateObject(String classname,
ClassLoader classLoader) |
protected Class |
loadClass(String classname,
ClassLoader classLoader) |
protected String |
toXML(String fieldName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanConvert, fromConfigurationprotected Class getClassForImplementationHint(Class type, PlexusConfiguration configuration, ClassLoader classLoader) throws ComponentConfigurationException
ComponentConfigurationExceptionprotected Class loadClass(String classname, ClassLoader classLoader) throws ComponentConfigurationException
ComponentConfigurationExceptionprotected Object instantiateObject(String classname, ClassLoader classLoader) throws ComponentConfigurationException
ComponentConfigurationExceptionprotected Object instantiateObject(Class clazz) throws ComponentConfigurationException
ComponentConfigurationExceptionprotected Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator, Class type) throws ComponentConfigurationException
ComponentConfigurationExceptionprotected Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator) throws ComponentConfigurationException
ComponentConfigurationExceptionpublic Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator) throws ComponentConfigurationException
fromConfiguration in interface ConfigurationConverterconverterLookup - 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 expressionsComponentConfigurationExceptionCopyright © 2001–2016 Codehaus Plexus. All rights reserved.