Restore throws declarations on public/protected methods
This commit is contained in:
@@ -52,7 +52,7 @@ public abstract class AbstractAction implements Action, InitializingBean {
|
||||
return new EventFactorySupport();
|
||||
}
|
||||
|
||||
public void afterPropertiesSet() {
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
try {
|
||||
initAction();
|
||||
} catch (Exception ex) {
|
||||
@@ -66,7 +66,7 @@ public abstract class AbstractAction implements Action, InitializingBean {
|
||||
* Keep in mind that this hook will only be invoked when this action is deployed in a Spring application context
|
||||
* since it uses the Spring {@link InitializingBean} mechanism to trigger action initialisation.
|
||||
*/
|
||||
protected void initAction() {
|
||||
protected void initAction() throws Exception {
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -217,7 +217,7 @@ public abstract class AbstractAction implements Action, InitializingBean {
|
||||
* or <code>null</code> if the <code>doExecute()</code> method should be called to obtain the action result
|
||||
* @throws Exception an <b>unrecoverable</b> exception occured, either checked or unchecked
|
||||
*/
|
||||
protected Event doPreExecute(RequestContext context) {
|
||||
protected Event doPreExecute(RequestContext context) throws Exception {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ public abstract class AbstractAction implements Action, InitializingBean {
|
||||
* Template hook method subclasses should override to encapsulate their specific action execution logic.
|
||||
* @param context the action execution context, for accessing and setting data in "flow scope" or "request scope"
|
||||
* @return the action result event
|
||||
* @an <b>unrecoverable</b> exception occured, either checked or unchecked
|
||||
* @throws Exception an <b>unrecoverable</b> exception occured, either checked or unchecked
|
||||
*/
|
||||
protected abstract Event doExecute(RequestContext context) throws Exception;
|
||||
|
||||
@@ -237,6 +237,6 @@ public abstract class AbstractAction implements Action, InitializingBean {
|
||||
* @param context the action execution context, for accessing and setting data in "flow scope" or "request scope"
|
||||
* @throws Exception an <b>unrecoverable</b> exception occured, either checked or unchecked
|
||||
*/
|
||||
protected void doPostExecute(RequestContext context) {
|
||||
protected void doPostExecute(RequestContext context) throws Exception {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class ExternalRedirectAction extends AbstractAction {
|
||||
this.resourceUri = resourceUri;
|
||||
}
|
||||
|
||||
protected Event doExecute(RequestContext context) {
|
||||
protected Event doExecute(RequestContext context) throws Exception {
|
||||
String resourceUri = (String) this.resourceUri.getValue(context);
|
||||
context.getExternalContext().requestExternalRedirect(resourceUri);
|
||||
return success();
|
||||
|
||||
@@ -40,7 +40,7 @@ public class FlowDefinitionRedirectAction extends AbstractAction {
|
||||
this.expression = expression;
|
||||
}
|
||||
|
||||
protected Event doExecute(RequestContext context) {
|
||||
protected Event doExecute(RequestContext context) throws Exception {
|
||||
String encodedRedirect = (String) expression.getValue(context);
|
||||
if (encodedRedirect == null) {
|
||||
throw new IllegalStateException(
|
||||
|
||||
@@ -774,7 +774,7 @@ public class FormAction extends MultiAction implements InitializingBean {
|
||||
* @see #initBinder(RequestContext, DataBinder)
|
||||
* @see #setMessageCodesResolver(MessageCodesResolver)
|
||||
*/
|
||||
protected DataBinder createBinder(RequestContext context, Object formObject) {
|
||||
protected DataBinder createBinder(RequestContext context, Object formObject) throws Exception {
|
||||
DataBinder binder = new WebDataBinder(formObject, getFormObjectName());
|
||||
if (getMessageCodesResolver() != null) {
|
||||
binder.setMessageCodesResolver(getMessageCodesResolver());
|
||||
@@ -790,7 +790,7 @@ public class FormAction extends MultiAction implements InitializingBean {
|
||||
* @param binder the data binder to use
|
||||
* @throws Exception when an unrecoverable exception occurs
|
||||
*/
|
||||
protected void doBind(RequestContext context, DataBinder binder) {
|
||||
protected void doBind(RequestContext context, DataBinder binder) throws Exception {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Binding allowed request parameters in "
|
||||
+ StylerUtils.style(context.getExternalContext().getRequestParameterMap())
|
||||
|
||||
@@ -51,7 +51,7 @@ public class SetAction extends AbstractAction {
|
||||
this.valueExpression = valueExpression;
|
||||
}
|
||||
|
||||
protected Event doExecute(RequestContext context) {
|
||||
protected Event doExecute(RequestContext context) throws Exception {
|
||||
Object value = valueExpression.getValue(context);
|
||||
nameExpression.setValue(context, value);
|
||||
return success();
|
||||
|
||||
Reference in New Issue
Block a user