com.atlassian.bamboo.plugin.xwork
Class PluginAwareConfiguration

java.lang.Object
  extended by com.opensymphony.xwork.config.impl.DefaultConfiguration
      extended by com.atlassian.bamboo.plugin.xwork.PluginAwareConfiguration
All Implemented Interfaces:
com.opensymphony.xwork.config.Configuration

public class PluginAwareConfiguration
extends com.opensymphony.xwork.config.impl.DefaultConfiguration

An XWork Configuration implementation that allows for PluginAware XWork actions.

This class is essentially a copy of the DefaultConfiguration class, except that it creates PluginAwareActionConfig objects when required, when rebuilding the runtime configuration.


Field Summary
 
Fields inherited from class com.opensymphony.xwork.config.impl.DefaultConfiguration
LOG, runtimeConfiguration
 
Constructor Summary
PluginAwareConfiguration()
           
 
Method Summary
protected  com.opensymphony.xwork.config.RuntimeConfiguration buildRuntimeConfiguration()
           
protected  com.opensymphony.xwork.config.entities.ActionConfig createActionConfig(com.opensymphony.xwork.config.entities.ActionConfig baseConfig, java.util.Map params, java.util.Map results, java.util.List interceptors, java.util.List externalRefs, java.util.List exceptionMappings, java.lang.String packageName)
          Create an ActionConfig from a base ActionConfig and supplied configuration parameters.
 
Methods inherited from class com.opensymphony.xwork.config.impl.DefaultConfiguration
addPackageConfig, destroy, getPackageConfig, getPackageConfigNames, getPackageConfigs, getParameter, getParameters, getRuntimeConfiguration, rebuildRuntimeConfiguration, reload, removePackageConfig, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginAwareConfiguration

public PluginAwareConfiguration()
Method Detail

createActionConfig

protected com.opensymphony.xwork.config.entities.ActionConfig createActionConfig(com.opensymphony.xwork.config.entities.ActionConfig baseConfig,
                                                                                 java.util.Map params,
                                                                                 java.util.Map results,
                                                                                 java.util.List interceptors,
                                                                                 java.util.List externalRefs,
                                                                                 java.util.List exceptionMappings,
                                                                                 java.lang.String packageName)
Create an ActionConfig from a base ActionConfig and supplied configuration parameters.

This method ensures that base PluginAwareActionConfig's are created as PluginAwareActionConfigs.

Parameters:
baseConfig - base configuration object. If this object is an instance of PluginAwareActionConfig, a PluginAwareActionConfig will be returned.
params - config params.
results - config results.
interceptors - config interceptors.
externalRefs - config externalRefs.
exceptionMappings - config exceptionMappings.
packageName - config packageName.
Returns:
ActionConfig generated from config parameters.

buildRuntimeConfiguration

protected com.opensymphony.xwork.config.RuntimeConfiguration buildRuntimeConfiguration()
                                                                                throws com.opensymphony.xwork.config.ConfigurationException
Overrides:
buildRuntimeConfiguration in class com.opensymphony.xwork.config.impl.DefaultConfiguration
Throws:
com.opensymphony.xwork.config.ConfigurationException


Copyright © 2011 Atlassian. All Rights Reserved.