org.codehaus.plexus.component.configurator.converters.composite
Class PropertiesConverter

java.lang.Object
  extended byorg.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
      extended byorg.codehaus.plexus.component.configurator.converters.composite.PropertiesConverter
All Implemented Interfaces:
ConfigurationConverter

public class PropertiesConverter
extends AbstractConfigurationConverter

Converter for java.util.Properties.

Version:
$Id: PropertiesConverter.java 2634 2005-10-08 06:33:08Z brett $
Author:
Michal Maczka

Field Summary
 
Fields inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
 
Constructor Summary
PropertiesConverter()
           
 
Method Summary
private  void addEntry(java.util.Properties properties, java.lang.String element, PlexusConfiguration property)
           
 boolean canConvert(java.lang.Class type)
           
 java.lang.Object fromConfiguration(ConverterLookup converterLookup, PlexusConfiguration configuration, java.lang.Class type, java.lang.Class baseType, java.lang.ClassLoader classLoader, ExpressionEvaluator expressionEvaluator, ConfigurationListener listener)
           
 
Methods inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
fromConfiguration, fromExpression, fromExpression, fromXML, getClassForImplementationHint, instantiateObject, instantiateObject, loadClass, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConverter

public PropertiesConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class type)

fromConfiguration

public java.lang.Object fromConfiguration(ConverterLookup converterLookup,
                                          PlexusConfiguration configuration,
                                          java.lang.Class type,
                                          java.lang.Class baseType,
                                          java.lang.ClassLoader classLoader,
                                          ExpressionEvaluator expressionEvaluator,
                                          ConfigurationListener listener)
                                   throws ComponentConfigurationException
Parameters:
converterLookup - Repository of available converters
configuration -
type - the type of object to read
baseType - the type of object the the source is
classLoader - ClassLoader which should be used for loading classes
expressionEvaluator - the expression evaluator to use for expressions
Returns:
the object
Throws:
ComponentConfigurationException

addEntry

private void addEntry(java.util.Properties properties,
                      java.lang.String element,
                      PlexusConfiguration property)
               throws ComponentConfigurationException
Throws:
ComponentConfigurationException