请勿使用 BEA Global.app 文件

BEA Beehive 使用名为 Global.app 的全局页面流文件来定义可由应用程序中的任何其他页面流调用的操作。

要迁移 Global.app 文件,请将该文件移到项目中的 Java™ 源路径并将文件扩展名更改为 .java。

因为 BEA Javadoc 标记不会将 Global.app 文件记录为控制器,所以您必须将 @JPF.Controller 类级别注释添加到 Global.java 文件,如以下示例中所示:


/**
 * The Global page flow is used to define actions which can be invoked by any
 * other page flow in a webapp. The jpf:catch annotation 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