EventActionDispatcher の推奨される使用方法は次のとおりです (API ドキュメント @ http://struts.apache.org/1.2.9/api/org/apache/struts/actions/EventActionDispatcher.htmlによる) 。
public class MyCustomAction extends Action {
protected ActionDispatcher dispatcher = new EventActionDispatcher(this);
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
return dispatcher.execute(mapping, form, request, response);
}
}
これを行うと、コンストラクターが終了する前に「this」への参照が公開されますか? メソッド外のフィールド割り当てを管理する規則は何ですか。
前もって感謝します。
よろしくお願いします。