发明名称 Controlling navigation of application logic using annotated application code
摘要 A computer implemented method, apparatus, and computer usable program product for processing application code. In one embodiment, a call is received to invoke a set of methods of annotated application code. The annotated application code includes a set of annotations specifying a selection of the set of methods. A selected method from the set of methods is invoked in response to determining that the call is valid according to the set of annotations. Thereafter, a subsequent set of valid methods for execution is identified based upon an annotation associated with the selected method.
申请公布号 US8856809(B2) 申请公布日期 2014.10.07
申请号 US200812051629 申请日期 2008.03.19
申请人 International Business Machines Corporation 发明人 Curbera Francisco Phelan;Duftler Matthew J.;Fraenkel Michael Levi;Khalaf Rania Y.;Martens Axel;Riemer Johannes;Shachor Gal
分类号 G06F9/54;G06F9/44 主分类号 G06F9/54
代理机构 Yee & Associates, P.C. 代理人 Yee & Associates, P.C. ;Stock William
主权项 1. A computer implemented method for processing application code, the computer implemented method comprising: configuring, by a web server, a servlet container having annotated application code, an annotation processor that generates a call graph specifying sequencing constraints of the annotated application code, a controller that enforces the sequencing constraints of the annotated application code, and an invoker that matches unique resource identifiers and parameters of requests to appropriate methods, wherein the annotated application code comprises a set of annotations specifying a selection of a set of methods, wherein the set of annotations includes a start annotation that initiates execution of the annotated application code, a continue annotation that identifies a method invoked during the execution of the annotated application code, and a grouping annotation that identifies a method containing a group of two or more continue annotations, each of which identifies a set of operations, and wherein the controller determines which continue annotations from the group of two or more continue annotations are activated based on satisfaction of specified conditions; receiving, by the web server, a call to invoke a set of methods in a web page; determining, by the web server, that the call is valid according to the set of annotations and the call graph using the controller; responsive to the web server determining that the call is valid according to the set of annotations and the call graph, invoking, by the web server, a selected method from the set of methods using the invoker; identifying, by the web server, a subsequent set of valid methods of the set of methods in the web page for execution based upon an annotation associated with the selected method of the set of methods in the web page using the controller; and responsive to the web server receiving a subsequent call to a method of the annotated application code lacking a continue annotation, terminating, by the web server, the execution of the annotated application code.
地址 Armonk NY US