public final class

CompositeBeanHelper

extends Object
java.lang.Object
   ↳ org.eclipse.sisu.plexus.CompositeBeanHelper

Class Overview

Helper class that implements low-level Plexus configuration of composite beans.

Summary

Public Constructors
CompositeBeanHelper(ConverterLookup lookup, ClassLoader loader, ExpressionEvaluator evaluator, ConfigurationListener listener)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CompositeBeanHelper (ConverterLookup lookup, ClassLoader loader, ExpressionEvaluator evaluator, ConfigurationListener listener)

Public Methods

public void setDefault (Object bean, Object defaultValue, PlexusConfiguration configuration)

Calls the default "set" method on the bean; re-converts the configuration if necessary.

Parameters
bean The bean being configured
defaultValue The default value
configuration The configuration
Throws
ComponentConfigurationException

public 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.

Parameters
bean The bean being configured
propertyName The property name
valueType The value type
configuration The configuration
Throws
ComponentConfigurationException