[
https://issues.apache.org/struts/browse/WW-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Don Brown resolved WW-2244.
---------------------------
Resolution: Implemented
Fix Version/s: (was: 2.1.4)
Assignee: Don Brown
Closing as a workaround has been identified and alternate ticket has been
created
> Make it easier to use custom ActionConfig
> -----------------------------------------
>
> Key: WW-2244
> URL: https://issues.apache.org/struts/browse/WW-2244
> Project: Struts 2
> Issue Type: Improvement
> Reporter: John Lindal
> Assignee: Don Brown
> Priority: Minor
>
> The only way that I have found to instantiate a derived class of ActionConfig
> is to re-implement
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.buildFullActionConfig().
> Unfortunately, this is private, so I also have to copy
> buildRuntimeconfiguration() and the entire RuntimeConfigurationImpl class.
> Copying code from the library into our own classes creates undesirable
> coupling!
> This would unnecessary if buildFullActionConfig() called a protected factory
> method to construct the ActionConfig object, e.g.,
> protected ActionConfig constructActionConfig(packageContext, baseConfig,
> params, results, interceptors, exceptionMappings);
> Of course, if I missed something, please let me know :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.