struts
struts copied to clipboard
WW-3714 Deprecate and repackage common APIs part 5
WW-3714
This PR deprecates and provides repackaged replacements for the following APIs, ahead of their permanent migration in Struts 7.0:
-
com.opensymphony.xwork2.ActionSupport
-
com.opensymphony.xwork2.interceptor.AbstractInterceptor
-
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor
-
com.opensymphony.xwork2.interceptor.MethodFilterInterceptorUtil
I've also added alternative constructors to the following class which should unblock certain unit tests:
-
com.opensymphony.xwork2.config.entities.InterceptorMapping
Note that the techniques employed in this PR are slightly different to that of the previous PRs where we were working with interfaces rather than concrete classes. For example, I've taken care to preserve the class inheritance hierarchy of com.opensymphony.xwork2.interceptor.MethodFilterInterceptor
to ensure compatibility with any potential overriding classes. This necessitated that the implementation was duplicated rather than extending its org.apache.struts2
counterpart.