Class ObjectWithFieldsConverter
java.lang.Object
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter
- All Implemented Interfaces:
ConfigurationConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class type) fromConfiguration
(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener) void
processConfiguration
(ConverterLookup converterLookup, Object object, ClassLoader classLoader, PlexusConfiguration configuration) void
processConfiguration
(ConverterLookup converterLookup, Object object, ClassLoader classLoader, PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator) void
processConfiguration
(ConverterLookup converterLookup, Object object, ClassLoader classLoader, PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener) Methods inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
fromConfiguration, fromExpression, fromExpression, fromXML, getClassForImplementationHint, instantiateObject, instantiateObject, loadClass, toXML
-
Constructor Details
-
ObjectWithFieldsConverter
public ObjectWithFieldsConverter()
-
-
Method Details
-
canConvert
-
fromConfiguration
public Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener) throws ComponentConfigurationException - Parameters:
converterLookup
- Repository of available convertersconfiguration
-PlexusConfiguration
type
- 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 expressionslistener
-ConfigurationListener
.- Returns:
- the object
- Throws:
ComponentConfigurationException
- in case of an error. TODO: a better way, instead of baseType, would be to pass in a factory for new classes that could be based from the given package
-
processConfiguration
public void processConfiguration(ConverterLookup converterLookup, Object object, ClassLoader classLoader, PlexusConfiguration configuration) throws ComponentConfigurationException - Throws:
ComponentConfigurationException
-
processConfiguration
public void processConfiguration(ConverterLookup converterLookup, Object object, ClassLoader classLoader, PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator) throws ComponentConfigurationException - Throws:
ComponentConfigurationException
-
processConfiguration
public void processConfiguration(ConverterLookup converterLookup, Object object, ClassLoader classLoader, PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener) throws ComponentConfigurationException - Throws:
ComponentConfigurationException
-