Patent ID: 7280558

Claim:
A system for converting a synchronous method call on a target method to an asynchronous method call, the system comprising: a pattern generator that breaks the synchronous method call into one or more constituent parts; and a pattern data store connected to the pattern generator, the pattern data store stores data associated with converting the synchronous method call to the asynchronous method call, where the one or more constituent parts comprise at least one of: a begin asynchronous operation method; an end asynchronous operation method; an asynchronous call state object; and an asynchronous call result object, where the begin asynchronous operation method returns an asynchronous result object and accepts as inputs at least one of: input parameters presented to the target method; input/output parameters presented to the target method; parameters passed by reference to the target method; an address of an asynchronous callback routine; and the asynchronous call state object, where the end asynchronous operation method accepts as inputs at least one of: input/output parameters presented to the target method; output parameters presented to the target method; parameters passed by reference to the target method; and the asynchronous call result object, and where the asynchronous call result object comprises: a first field that holds information concerning whether the begin asynchronous operation method completed asynchronously; and a second field that holds information concerning whether a server completed processing the target method.