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