public class CollectionConverter extends AbstractConfigurationConverter implements ParameterizedConfigurationConverter
Constructor and Description |
---|
CollectionConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
Object |
fromConfiguration(ConverterLookup converterLookup,
PlexusConfiguration configuration,
Class<?> type,
Type[] typeArguments,
Class<?> baseType,
ClassLoader classLoader,
ExpressionEvaluator expressionEvaluator,
ConfigurationListener listener) |
Object |
fromConfiguration(ConverterLookup converterLookup,
PlexusConfiguration configuration,
Class type,
Class baseType,
ClassLoader classLoader,
ExpressionEvaluator expressionEvaluator,
ConfigurationListener listener) |
protected Collection |
getDefaultCollection(Class collectionType) |
failIfNotTypeCompatible, fromConfiguration, fromExpression, fromExpression, fromXML, getClassForImplementationHint, instantiateObject, instantiateObject, loadClass, toXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromConfiguration
public boolean canConvert(Class type)
canConvert
in interface ConfigurationConverter
public Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, Class baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener) 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
public Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, Class<?> type, Type[] typeArguments, Class<?> baseType, ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener) throws ComponentConfigurationException
fromConfiguration
in interface ParameterizedConfigurationConverter
converterLookup
- Repository of available converterstype
- the type of object to readtypeArguments
- The type arguments for the generic type being configured, may be null
.baseType
- the type of object the the source isclassLoader
- ClassLoader which should be used for loading classesexpressionEvaluator
- the expression evaluator to use for expressionsComponentConfigurationException
protected Collection getDefaultCollection(Class collectionType)
Copyright © 2010-2019 Sonatype, Inc.. All Rights Reserved.