Dynamically generated wrapper
First Claim
1. A computer program product for execution by a server computer for dynamically generating a wrapper object, comprising:
- computer code for receiving a vendor object and superclass;
computer code for performing reflection on the vendor class;
computer code for generating a wrapper class;
computer code for instantiating the wrapper class, the instantiating including generating a wrapper object as an instance of the wrapper class; and
computer code for associating the vendor object with the wrapper object.
2 Assignments
0 Petitions
Accused Products
Abstract
A dynamic generated wrapper object to intercept transmissions between a vendor object and an application program and performs server side tasks. To dynamically generate the wrapper at runtime in memory, the application server receives a vendor class, performs reflection on the vendor class, generates a wrapper class, and creates an instance of the wrapper class. In operation, the dynamically generated wrapper object receives a call placed to a method of the wrapped object, initiates pre-processing tasks to be performed, calls the method on the wrapped object, receives a result from the method invocation against the wrapped object, initiates post-processing tasks to be performed, and transmits the wrapped result back to the application program. The pre-processing tasks may include execution of a pre-invocation handler. The post-processing tasks may include execution of a post-invocation handler.
54 Citations
16 Claims
-
1. A computer program product for execution by a server computer for dynamically generating a wrapper object, comprising:
-
computer code for receiving a vendor object and superclass;
computer code for performing reflection on the vendor class;
computer code for generating a wrapper class;
computer code for instantiating the wrapper class, the instantiating including generating a wrapper object as an instance of the wrapper class; and
computer code for associating the vendor object with the wrapper object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer program product for execution by a server computer for processing an invocation using a dynamically generated wrapper, comprising:
-
computer code for receiving an invocation call by a wrapper object, the invocation call directed to a wrapped vendor object by an application program;
computer code for initiating pre-processing by the wrapper object;
computer code for calling the wrapped vendor object by the wrapper object;
computer code for receiving a result from the wrapped vendor object by the wrapper object;
computer code for initiating post-processing by the wrapper object; and
computer code for provide the result to the application program. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
Specification