org.codehaus.plexus.configuration.processor

Class ConfigurationProcessor

public class ConfigurationProcessor extends Object

Take a normal PlexusConfiguration and look for directives within it that allow the inlining of external configuration sources.

Version: $Id: ConfigurationProcessor.java 4779 2006-11-23 04:09:31Z jvanzyl $

Author: Jason van Zyl

UNKNOWN: could this be amalgamated with the expression handling in the component configurator? It cannot be used here, as it requires actual objects to be returned, which cannot be stored back into a configuration object.

Field Summary
protected Maphandlers
Constructor Summary
ConfigurationProcessor()
Method Summary
voidaddConfigurationResourceHandler(ConfigurationResourceHandler handler)
voidcopyAttributes(PlexusConfiguration source, XmlPlexusConfiguration target)
protected MapcreateHandlerParameters(PlexusConfiguration c, Map variables)
PlexusConfigurationprocess(PlexusConfiguration configuration, Map variables)
protected voidwalk(PlexusConfiguration source, PlexusConfiguration processed, Map variables)

Field Detail

handlers

protected Map handlers

Constructor Detail

ConfigurationProcessor

public ConfigurationProcessor()

Method Detail

addConfigurationResourceHandler

public void addConfigurationResourceHandler(ConfigurationResourceHandler handler)

copyAttributes

private void copyAttributes(PlexusConfiguration source, XmlPlexusConfiguration target)

createHandlerParameters

protected Map createHandlerParameters(PlexusConfiguration c, Map variables)

process

public PlexusConfiguration process(PlexusConfiguration configuration, Map variables)

walk

protected void walk(PlexusConfiguration source, PlexusConfiguration processed, Map variables)