Class AbstractConfigurationConverter
- java.lang.Object
-
- org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
-
- All Implemented Interfaces:
ConfigurationConverter
- Direct Known Subclasses:
AbstractBasicConverter
,AbstractCollectionConverter
,ClassRealmConverter
,EnumConverter
,MapConverter
,ObjectWithFieldsConverter
,PlexusConfigurationConverter
,PropertiesConverter
public abstract class AbstractConfigurationConverter extends Object implements ConfigurationConverter
-
-
Constructor Summary
Constructors Constructor Description AbstractConfigurationConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
failIfNotTypeCompatible(Object value, Class<?> type, PlexusConfiguration configuration)
Object
fromConfiguration(ConverterLookup lookup, PlexusConfiguration configuration, Class<?> type, Class<?> enclosingType, ClassLoader loader, ExpressionEvaluator evaluator)
protected Object
fromExpression(PlexusConfiguration configuration, ExpressionEvaluator evaluator)
protected Object
fromExpression(PlexusConfiguration configuration, ExpressionEvaluator evaluator, Class<?> type)
protected String
fromXML(String name)
protected Class<?>
getClassForImplementationHint(Class<?> type, PlexusConfiguration configuration, ClassLoader loader)
protected Object
instantiateObject(Class<?> type)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.component.configurator.converters.ConfigurationConverter
canConvert, fromConfiguration
-
-
-
-
Method Detail
-
fromConfiguration
public Object fromConfiguration(ConverterLookup lookup, PlexusConfiguration configuration, Class<?> type, Class<?> enclosingType, ClassLoader loader, ExpressionEvaluator evaluator) throws ComponentConfigurationException
- Specified by:
fromConfiguration
in interfaceConfigurationConverter
- Throws:
ComponentConfigurationException
-
fromExpression
protected Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator evaluator) throws ComponentConfigurationException
- Throws:
ComponentConfigurationException
-
fromExpression
protected Object fromExpression(PlexusConfiguration configuration, ExpressionEvaluator evaluator, Class<?> type) throws ComponentConfigurationException
- Throws:
ComponentConfigurationException
-
failIfNotTypeCompatible
protected final void failIfNotTypeCompatible(Object value, Class<?> type, PlexusConfiguration configuration) throws ComponentConfigurationException
- Throws:
ComponentConfigurationException
-
getClassForImplementationHint
protected final Class<?> getClassForImplementationHint(Class<?> type, PlexusConfiguration configuration, ClassLoader loader) throws ComponentConfigurationException
- Throws:
ComponentConfigurationException
-
instantiateObject
protected final Object instantiateObject(Class<?> type) throws ComponentConfigurationException
- Throws:
ComponentConfigurationException
-
-