You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2008/06/13 02:18:05 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 ]

Don Brown updated WW-2245:
--------------------------

    Fix Version/s:     (was: 2.1.4)
                   2.1.3

> Make it easier to extend XmlConfigurationProvider
> -------------------------------------------------
>
>                 Key: WW-2245
>                 URL: https://issues.apache.org/struts/browse/WW-2245
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: XML Configuration
>            Reporter: John Lindal
>            Priority: Minor
>             Fix For: 2.1.3
>
>
> 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.