BEA Beehive は、Global.app というグローバル・ページ・フロー・ファイルを使用して、アプリケーションの他のページ・フローによって呼び出すことのできるアクションを定義します。
Global.app ファイルをマイグレーションするには、ファイルをプロジェクトの Java™ ソース・パスに移動し、ファイル拡張子を .java に変更します。
BEA Javadoc タグは Global.app ファイルをコントローラーとして文書化しないため、以下の例に示されるように Global.java ファイルに @JPF.Controller クラス・レベルのアノテーションを追加する必要があります。
|
/** * The Global page flow is used to define actions which can be invoked by any * other page flow in a webapp. The jpf:catchannotation provides a global * way to catch unhandled exceptions by forwarding to an error page. * * @jpf:catch type="Exception" method="handleException" * @jpf:catch type="PageFlowException" method="handlePageFlowException" */ @Jpf.Controller ( catches = { @Jpf.Catch (type=java.lang.Exception.class, method="handleException"), @Jpf.Catch (type=PageFlowException.class, method="handlePageFlowException") } ) public class Global extends GlobalApp |