Patent ID: 8387072

Claim:
A method, comprising: registering one or more handlers for a software application of a computing device, wherein each of the one or more handlers is configured to be executed upon receiving one or more indications of one or more triggering events; executing the software application on the computing device using an actual environment of the software application; determining, at the computing device, that a triggering event for the software application has occurred; and in response to the triggering event, the computing device: determining a handler environment for the triggering event, wherein the handler environment is based on the actual environment, determining that one or more triggered handlers of the one or more registered handlers are to be executed, making available to each individual triggered handler at least a respective portion of the handler environment, executing the one or more triggered handlers, wherein at least one triggered handler of the one or more triggered handlers updates its respective portion of the handler environment during execution, after executing the one or more triggered handlers, determining an updated-handler environment based on the handler environment and the portions of the handler environments made available to the one or more triggered handlers, and updating the actual environment based on the updated-handler environment.