Package org.eclipse.sisu.plexus
Class CompositeBeanHelper
- java.lang.Object
-
- org.eclipse.sisu.plexus.CompositeBeanHelper
-
public final class CompositeBeanHelper extends java.lang.Object
Helper class that implements low-level Plexus configuration of composite beans.
-
-
Constructor Summary
Constructors Constructor Description CompositeBeanHelper(ConverterLookup lookup, java.lang.ClassLoader loader, ExpressionEvaluator evaluator, ConfigurationListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
CompositeBeanHelper
public CompositeBeanHelper(ConverterLookup lookup, java.lang.ClassLoader loader, ExpressionEvaluator evaluator, ConfigurationListener listener)
-
-
Method Detail
-
setDefault
public void setDefault(java.lang.Object bean, java.lang.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(java.lang.Object bean, java.lang.String propertyName, java.lang.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
-
-