org.codehaus.plexus.registry
Class RegistryComponentValueSetter

java.lang.Object
  extended by org.codehaus.plexus.registry.RegistryComponentValueSetter

public class RegistryComponentValueSetter
extends java.lang.Object

TODO! This should not be needed - add the necessary capability to the other component value setter to merge results with existing values


Field Summary
private  java.lang.reflect.Field field
           
private  java.lang.String fieldName
           
private  java.lang.Class fieldType
           
private  org.codehaus.plexus.component.configurator.converters.ConfigurationConverter fieldTypeConverter
           
private  org.codehaus.plexus.component.configurator.ConfigurationListener listener
           
private  org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup
           
private  java.lang.Object object
           
private  java.lang.reflect.Method setter
           
private  java.lang.Class setterParamType
           
private  org.codehaus.plexus.component.configurator.converters.ConfigurationConverter setterTypeConverter
           
 
Constructor Summary
RegistryComponentValueSetter(java.lang.String fieldName, java.lang.Object object, org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup)
           
RegistryComponentValueSetter(java.lang.String fieldName, java.lang.Object object, org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup, org.codehaus.plexus.component.configurator.ConfigurationListener listener)
           
 
Method Summary
 void configure(org.codehaus.plexus.configuration.PlexusConfiguration config, java.lang.ClassLoader cl, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator)
           
private  java.lang.Object mergeExisting(java.lang.Object value, java.lang.String exceptionInfo)
           
private  void setValueUsingField(java.lang.Object value)
           
private  void setValueUsingSetter(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

object

private java.lang.Object object

fieldName

private java.lang.String fieldName

lookup

private org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup

setter

private java.lang.reflect.Method setter

setterParamType

private java.lang.Class setterParamType

setterTypeConverter

private org.codehaus.plexus.component.configurator.converters.ConfigurationConverter setterTypeConverter

field

private java.lang.reflect.Field field

fieldType

private java.lang.Class fieldType

fieldTypeConverter

private org.codehaus.plexus.component.configurator.converters.ConfigurationConverter fieldTypeConverter

listener

private org.codehaus.plexus.component.configurator.ConfigurationListener listener
Constructor Detail

RegistryComponentValueSetter

public RegistryComponentValueSetter(java.lang.String fieldName,
                                    java.lang.Object object,
                                    org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup)
                             throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException

RegistryComponentValueSetter

public RegistryComponentValueSetter(java.lang.String fieldName,
                                    java.lang.Object object,
                                    org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup,
                                    org.codehaus.plexus.component.configurator.ConfigurationListener listener)
                             throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException
Method Detail

setValueUsingField

private void setValueUsingField(java.lang.Object value)
                         throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException

setValueUsingSetter

private void setValueUsingSetter(java.lang.Object value)
                          throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException

mergeExisting

private java.lang.Object mergeExisting(java.lang.Object value,
                                       java.lang.String exceptionInfo)
                                throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException

configure

public void configure(org.codehaus.plexus.configuration.PlexusConfiguration config,
                      java.lang.ClassLoader cl,
                      org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator)
               throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException