You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "John Lindal (JIRA)" <ji...@apache.org> on 2007/10/10 23:50:37 UTC
[jira] Updated: (WW-2245) Make it easier to extend
XmlConfigurationProvider
[ https://issues.apache.org/struts/browse/WW-2245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Lindal updated WW-2245:
----------------------------
Priority: Minor (was: Major)
> Make it easier to extend XmlConfigurationProvider
> -------------------------------------------------
>
> Key: WW-2245
> URL: https://issues.apache.org/struts/browse/WW-2245
> Project: Struts 2
> Issue Type: Improvement
> Reporter: John Lindal
> Priority: Minor
>
> The only way that I have found to extend org.apache.struts2.config.StrutsXmlConfigurationProvider to construct a derived class of ActionConfig is to override addAction(). Unfortunately, this requires copying the existing function from XmlConfigurationProvider. It would be nice if addAction() used a protected factory method to construct the ActionConfig object, e.g.,
> protected ActionConfig constructActionConfig(actionElement, packageContext, methodName, className, results);
> With this factory method, I would not have to copy any code out of XmlConfigurationProvider.
> 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.