Executing cross-cutting concerns for client-server remote procedure calls
First Claim
1. A computer-implemented method of executing cross-cutting actions across a plurality of remote procedure calls in an interactive application, comprising:
- processing, by a computer system, a source file defining a remote procedure call class specifying a plurality of remote procedure call methods, the source file comprising a decorator annotation annotating the remote procedure call class with a plurality of decorators such that each of the plurality of decorators applies to each of the plurality of remote procedure call methods specified in the remote procedure call class, each of the plurality of decorators specifying one or more cross-cutting actions for the interactive application;
receiving, by the computer system from a client device, a remote procedure call request to invoke a first remote procedure call method from the plurality of remote procedure call methods; and
executing, by the computer system based on the remote procedure call request, the cross-cutting actions specified in each of the plurality of decorators in conjunction with executing the requested first remote procedure call method from the plurality of remote procedure call methods, wherein a second remote procedure call method from the plurality of remote procedure call methods is not executed based on the remote procedure call request and wherein executing cross-cutting actions specified in a decorator from the plurality of decorators comprises;
prior to executing the requested first remote procedure call method, executing a before method indicated by the decorator from the plurality of decorators; and
subsequent to the execution of the requested first remote procedure call method, executing an after method indicated by the decorator from the plurality of decorators.
4 Assignments
0 Petitions
Accused Products
Abstract
Systems and methods for implementing cross-cutting actions that cut across many remote procedure calls (RPCs) in an interactive application, such as location-based parallel reality game are provided. In particular, one or more decorators can be associated in a source file, such as a Java source file, with a remote procedure call class defining a plurality of RPC methods for the interactive application. Each decorator can be a set of instructions that gets executed before and after an RPC method and addresses concerns that cut across a plurality of RPC methods for the interactive application.
-
Citations
16 Claims
-
1. A computer-implemented method of executing cross-cutting actions across a plurality of remote procedure calls in an interactive application, comprising:
-
processing, by a computer system, a source file defining a remote procedure call class specifying a plurality of remote procedure call methods, the source file comprising a decorator annotation annotating the remote procedure call class with a plurality of decorators such that each of the plurality of decorators applies to each of the plurality of remote procedure call methods specified in the remote procedure call class, each of the plurality of decorators specifying one or more cross-cutting actions for the interactive application; receiving, by the computer system from a client device, a remote procedure call request to invoke a first remote procedure call method from the plurality of remote procedure call methods; and executing, by the computer system based on the remote procedure call request, the cross-cutting actions specified in each of the plurality of decorators in conjunction with executing the requested first remote procedure call method from the plurality of remote procedure call methods, wherein a second remote procedure call method from the plurality of remote procedure call methods is not executed based on the remote procedure call request and wherein executing cross-cutting actions specified in a decorator from the plurality of decorators comprises; prior to executing the requested first remote procedure call method, executing a before method indicated by the decorator from the plurality of decorators; and subsequent to the execution of the requested first remote procedure call method, executing an after method indicated by the decorator from the plurality of decorators. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computing device having one or more processors and one or more non-transitory computer-readable media, the one or more non-transitory computer-readable media storing computer-readable instructions which when executed by the one or more processors cause the one or more processors to perform operations comprising:
-
storing a source file defining a remote procedure call class specifying a plurality of remote procedure call methods, the source file annotating the remote procedure call class with a plurality of decorators such that each of the plurality of decorators applies to each of the plurality of remote procedure call methods specified in the remote procedure call class, each of the plurality of decorators specifying one or more cross-cutting actions for the interactive application; receiving, from a client device, a remote procedure call request to invoke a first remote procedure call method from the plurality of remote procedure call methods; and executing, based on the remote procedure call request, the cross-cutting actions specified in each of the plurality of decorators in conjunction with executing the requested first remote procedure call method from the plurality of remote procedure call methods, wherein a second remote procedure call method from the plurality of remote procedure call methods is not executed based on the remote procedure call request and wherein executing cross-cutting actions specified in a decorator from the plurality of decorators comprises; prior to executing the requested first remote procedure call method, executing a before method indicated by the decorator from the plurality of decorators; and subsequent to the execution of the requested first remote procedure call method, executing an after method indicated by the decorator from the plurality of decorators. - View Dependent Claims (11, 12, 13)
-
-
14. A tangible, non-transitory computer-readable medium storing computer-storing computer-readable instructions that when executed by the one or more processors cause the one or more processors to perform operations, the operations comprising:
-
processing, by a computer system, a source file defining a remote procedure call class specifying a plurality of remote procedure call methods, the source file comprising a decorator annotation annotating the remote procedure call class with a plurality of decorators such that each of the plurality of decorators applies to each of the plurality of remote procedure call methods specified in the remote procedure call class, each of the plurality of decorators specifying one or more cross-cutting actions for the interactive application; receiving, by the computer system from a client device, a remote procedure call request to invoke a first remote procedure call method from the plurality of remote procedure call methods; and executing, by the computer system based on the remote procedure call request, the cross-cutting actions specified in each of the plurality of decorators in conjunction with executing the requested first remote procedure call method from the plurality of remote procedure call methods, wherein a second remote procedure call method from the plurality of remote procedure call methods is not executed based on the remote procedure call request and wherein executing cross-cutting actions specified in a decorator from the plurality of decorators comprises; prior to executing the requested first remote procedure call method, executing a before method indicated by the decorator from the plurality of decorators; and subsequent to the execution of the requested first remote procedure call method, executing an after method indicated by the decorator from the plurality of decorators. - View Dependent Claims (15, 16)
-
Specification