Metadata-based eventing supporting operations on data
First Claim
1. A computer-implemented method for invoking event handlers, the computer-implemented method comprising performing computer-implemented operations for:
- detecting an operation on application data associated with application metadata, the application data comprising a table having records, wherein the application data is published according to a publish and subscribe model, wherein the table includes references to one or more delegates comprising at least one of a pre-operation delegate or a post-operation delegate, and wherein one or more subscribers are notified if the operation on the application data is completed;
in response to detecting the operation on the application data, determining if the application metadata comprises data describing one or more event handlers associated with the operation on the application data, wherein the one or more event handlers references one or more methods on a class; and
in response to determining that the application metadata comprises the data describing the one or more event handlers, identifying the one or more event handlers and invoking the one or more event handlers, wherein invoking the one or more event handlers comprises, when the one or more event handlers comprise a plurality of event handlers, determining an order in which the plurality of event handlers are to be invoked, and invoking the plurality of event handlers in the order determined.
2 Assignments
0 Petitions
Accused Products
Abstract
Concepts and technologies are described herein for providing metadata-based eventing supporting operations on data. Application data such as classes and events can be stored in a table and can be associated with and/or described by application metadata. The application metadata also can specify one or more event handlers that reference one or more methods on a class. The event handlers can be invoked via various delegates linked to the one or more application metadata tables. When a create, update, or delete operation on the application data is received, the application metadata can be queried to determine if the application metadata describes event handlers associated with the application data. If event handlers associated with the application data exist, the event handlers can be invoked.
172 Citations
16 Claims
-
1. A computer-implemented method for invoking event handlers, the computer-implemented method comprising performing computer-implemented operations for:
-
detecting an operation on application data associated with application metadata, the application data comprising a table having records, wherein the application data is published according to a publish and subscribe model, wherein the table includes references to one or more delegates comprising at least one of a pre-operation delegate or a post-operation delegate, and wherein one or more subscribers are notified if the operation on the application data is completed; in response to detecting the operation on the application data, determining if the application metadata comprises data describing one or more event handlers associated with the operation on the application data, wherein the one or more event handlers references one or more methods on a class; and in response to determining that the application metadata comprises the data describing the one or more event handlers, identifying the one or more event handlers and invoking the one or more event handlers, wherein invoking the one or more event handlers comprises, when the one or more event handlers comprise a plurality of event handlers, determining an order in which the plurality of event handlers are to be invoked, and invoking the plurality of event handlers in the order determined. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer-implemented method for invoking event handlers, the computer-implemented method comprising performing computer-implemented operations for:
-
receiving an operation for interacting with application data associated with application metadata, the application data comprising a table, wherein the application data is published according to a publish and subscribe model, and wherein the table includes references to one or more delegates comprising at least one of a pre-operation delegate or a post-operation delegate; modifying the application data in response to implementing the operation received, wherein one or more subscribers are notified if the operation on the application data is completed; in response to modifying the application data, determining if the application metadata comprises data describing one or more event handlers associated with the application data, wherein the one or more event handlers references one or more methods on a class; in response to determining that the application metadata comprises the data describing the one or more event handlers, identifying the one or more event handlers and invoking the event handlers to execute the one or more methods, wherein invoking the one or more event handlers comprises, when the one or more event handlers comprise a plurality of event handlers, determining an order in which the plurality of event handlers are to be invoked, and invoking the plurality of event handlers in the order determined. - View Dependent Claims (11, 12, 13)
-
-
14. A computer storage medium having computer readable instructions stored thereupon that, when executed by a computer, cause the computer to:
-
specify an event handler in application metadata associated with application data, wherein specifying the event handler comprises creating the event handler and associating the event handler with the application data, wherein the application data includes a table having records, wherein the application data is published according to a publish and subscribe model, and wherein the table includes references to one or more delegates comprising at least one of a pre-operation delegate or a post-operation delegate; store the event handler with the application metadata; receive an operation for interacting with the application data; in response to receiving the operation, modify the application data, wherein one or more subscribers are notified if the operation on the application data is completed; determine if the application metadata comprises data describing one or more event handlers associated with the application data, wherein the one or more event handlers references one or more methods on a class; and in response to determining that the application metadata comprises the data describing the one or more event handlers, identify the one or more event handlers, and invoke the one or more event handlers, wherein invoking the one or more event handlers comprises, when the one or more event handlers comprise a plurality of event handlers, determining an order in which the plurality of event handlers are to be invoked, and invoking the plurality of event handlers in the order determined. - View Dependent Claims (15, 16)
-
Specification