public final class CompositeBeanHelper
extends java.lang.Object
| Constructor and Description |
|---|
CompositeBeanHelper(ConverterLookup lookup,
java.lang.ClassLoader loader,
ExpressionEvaluator evaluator,
ConfigurationListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
setDefault(java.lang.Object bean,
java.lang.Object defaultValue,
PlexusConfiguration configuration)
Calls the default "set" method on the bean; re-converts the configuration if necessary.
|
void |
setProperty(java.lang.Object bean,
java.lang.String propertyName,
java.lang.Class<?> valueType,
PlexusConfiguration configuration)
Sets a property in the bean; looks for public setter/adder method before checking fields.
|
public CompositeBeanHelper(ConverterLookup lookup, java.lang.ClassLoader loader, ExpressionEvaluator evaluator, ConfigurationListener listener)
public void setDefault(java.lang.Object bean,
java.lang.Object defaultValue,
PlexusConfiguration configuration)
throws ComponentConfigurationException
bean - The bean being configureddefaultValue - The default valueconfiguration - The configurationComponentConfigurationExceptionpublic void setProperty(java.lang.Object bean,
java.lang.String propertyName,
java.lang.Class<?> valueType,
PlexusConfiguration configuration)
throws ComponentConfigurationException
bean - The bean being configuredpropertyName - The property namevalueType - The value typeconfiguration - The configurationComponentConfigurationException