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(ConverterLookup lookup, ClassLoader loader, ExpressionEvaluator evaluator, ConfigurationListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
CompositeBeanHelper
public CompositeBeanHelper(ConverterLookup lookup, ClassLoader loader, ExpressionEvaluator evaluator, ConfigurationListener listener)
-
-
Method Detail
-
setDefault
public void setDefault(Object bean, Object defaultValue, PlexusConfiguration configuration) throws 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:
ComponentConfigurationException
-
setProperty
public void setProperty(Object bean, String propertyName, Class<?> valueType, PlexusConfiguration configuration) throws 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:
ComponentConfigurationException
-
-