org.apache.maven.configuration
Interface BeanConfigurator

All Known Implementing Classes:
DefaultBeanConfigurator

public interface BeanConfigurator

Unmarshals some textual configuration from the POM or similar into the properties of a bean. This component works similar to the way Maven configures plugins from the POM, i.e. some configuration like <param>value</param> is mapped to an equally named property of the bean and converted. The properties of the bean are supposed to either have a public setter or be backed by an equally named field (of any visibility).

Since:
3.0
Author:
Benjamin Bentmann

Method Summary
 void configureBean(BeanConfigurationRequest request)
          Performs the specified bean configuration.
 

Method Detail

configureBean

void configureBean(BeanConfigurationRequest request)
                   throws BeanConfigurationException
Performs the specified bean configuration.

Parameters:
request - The configuration request that specifies the bean and the configuration to process, must not be null.
Throws:
BeanConfigurationException - If the bean configuration could not be successfully processed.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.