Metadata based eventing
AssigneeMicrosoft Technology Licensing, LLC
InventorsPeter Villadsen, Zhaoqi Chen, Marcos Calderon Macias, Ramakanthachary Gottumukkala
Life of this patent
Estimating the term…
Abstract
Customization of software source code is enabled by adding the event handlers to be invoked in metadata instead of as coding artifacts. The fact that classes offer delegates that can be assigned handlers is described as part of metadata, in other words, as descriptions of the event itself. By defining eventing in metadata, adding and/or removing handlers for specific events is enabled without programming or modification of the source code.
Claims20
A method executed at least in part by a server for metadata based event handling, the method comprising:
- in response to an input from a user, designating in source code of, a software program, a customization point associated with a method, wherein
- the customization point is configured to cause an event to be raised when the method is to be executed during execution of the source code,
- the event defines a parameter profile to be matched by an event handler,
- a subscription to the event is defined in metadata of the software program, and
- the event handler is called in response to the event being raised during the execution of the source code based on the subscription;
- instructing a client device to present a code development user interface to be displayed by the client device;
- and
- instructing the client device to receive a definition of the event handler and store the definition of the event handler in the metadata through the code development user interface such that the parameter profile is defined in the metadata.
A server for customizing an application, the server comprising:
- a memory configured to store instructions associated with the application including metadata of the application;
- a processor coupled to the memory, the processor configured to provide instructions to a client device to display a code development user interface associated with the application, wherein the processor is further configured to:
- in response to an input from a user, designate in source code of the application, a customization point associated with a method, wherein
- the customization point is configured to cause an event to be raised when the method is to be executed during execution of the source code,
- the event defines a parameter profile to be matched by an event handler,
- a subscription to the event is defined in the metadata of the application, and
- the event handler is called in response to the event being raised during the execution of the source code based on the subscription;
- and
- instruct the client device to receive a definition of the event handler and'store the definition of the event handler in the metadata through the code development user interface such that the parameter profile is defined in the metadata.
A method for metadata based event handling, the method comprising:
- during execution of an application encountering a customization point configured to cause an event to be raised, wherein the event defines a parameter profile to be matched by an event handler and a subscription to the event is defined in metadata of the application;
- and
- calling the event handler from the metadata in response to the event being raised, wherein a definition of the event handler is stored in the metadata through a code development user interface for customization of the application.
Dependencies are inferred from the claim text.