Apply "convention over configuration" principles to default interceptor and
result name
---------------------------------------------------------------------------------------
Key: WW-1805
URL: https://issues.apache.org/struts/browse/WW-1805
Project: Struts 2
Issue Type: Improvement
Reporter: Ted Husted
In WW-1707, we offered a consistent set of "camelCase" names for the
interceptors and results.
In almost all cases, the interceptor/result name matches the Java class name.
Rather than introduce arbitrary exceptions, we should rename either the
elements or Java classes, so that there is a 1:1 "convention over
configuration" correspondence. As a pattern, we could drop the "Servlet" or
"Struts" prefix and "Result" or "Interceptor" suffix, or move the classes to a
Result or Interceptor package
The elements or classes that would need to be renamed are
* chain / ActionChainResult
* externalRef / ExternalReferencesInterceptor
* execAndWait / ExecuteAndWaitInterceptor
* exception / ExceptionMappingInterceptor
* params / ParametersInterceptor
* staticParams / StaticParametersInterceptor
* sessionAutowiring / SessionContextAutowiringInterceptor
* tokenSession /. TokenSessionStoreInterceptor
* workflow / DefaultWorkflowInterceptor
* store / MessageStoreInterceptor
* profiling / ProfilingActivationInterceptor
Of course, the prior names can be supported on an interim basis to ease
migration.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.