Class CompositeBeanHelper


  • public final class CompositeBeanHelper
    extends Object
    Helper class that implements low-level Plexus configuration of composite beans.
    • Constructor Summary

      Constructors 
      Constructor Description
      CompositeBeanHelper​(org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup, ClassLoader loader, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator, org.codehaus.plexus.component.configurator.ConfigurationListener listener)  
    • Constructor Detail

      • CompositeBeanHelper

        public CompositeBeanHelper​(org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup,
                                   ClassLoader loader,
                                   org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator,
                                   org.codehaus.plexus.component.configurator.ConfigurationListener listener)
    • Method Detail

      • setDefault

        public void setDefault​(Object bean,
                               Object defaultValue,
                               org.codehaus.plexus.configuration.PlexusConfiguration configuration)
                        throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
        Calls the default "set" method on the bean; re-converts the configuration if necessary.
        Parameters:
        bean - The bean being configured
        defaultValue - The default value
        configuration - The configuration
        Throws:
        org.codehaus.plexus.component.configurator.ComponentConfigurationException
      • setProperty

        public void setProperty​(Object bean,
                                String propertyName,
                                Class<?> valueType,
                                org.codehaus.plexus.configuration.PlexusConfiguration configuration)
                         throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
        Sets a property in the bean; looks for public setter/adder method before checking fields.
        Parameters:
        bean - The bean being configured
        propertyName - The property name
        valueType - The value type
        configuration - The configuration
        Throws:
        org.codehaus.plexus.component.configurator.ComponentConfigurationException