Package org.eclipse.sisu.plexus
Class CompositeBeanHelper
- java.lang.Object
-
- org.eclipse.sisu.plexus.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetDefault(Object bean, Object defaultValue, org.codehaus.plexus.configuration.PlexusConfiguration configuration)Calls the default "set" method on the bean; re-converts the configuration if necessary.voidsetProperty(Object bean, String propertyName, Class<?> valueType, org.codehaus.plexus.configuration.PlexusConfiguration configuration)Sets a property in the bean; looks for public setter/adder method before checking fields.
-
-
-
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 configureddefaultValue- The default valueconfiguration- 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 configuredpropertyName- The property namevalueType- The value typeconfiguration- The configuration- Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException
-
-