struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (WW-2244) Make it easier to use custom ActionConfig
Date Fri, 13 Jun 2008 00:16:05 GMT

     [ 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.


Mime
View raw message