Method for dynamically generating a wrapper
First Claim
1. A method for dynamically generating a wrapper object, comprising:
- receiving a vendor object and superclass;
performing reflection on the vendor class;
generating a wrapper class;
instantiating the wrapper class, the instantiating including generating a wrapper object as an instance of the wrapper class; and
associating the vendor object with the wrapper object.
2 Assignments
0 Petitions
Accused Products
Abstract
Dynamically generating a 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.
-
Citations
16 Claims
-
1. A method for dynamically generating a wrapper object, comprising:
-
receiving a vendor object and superclass;
performing reflection on the vendor class;
generating a wrapper class;
instantiating the wrapper class, the instantiating including generating a wrapper object as an instance of the wrapper class; and
associating the vendor object with the wrapper object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method for processing an invocation using a dynamically generated wrapper, comprising:
-
receiving an invocation call by a wrapper object, the invocation call directed to a wrapped vendor object by an application program;
initiating pre-processing by the wrapper object;
calling the wrapped vendor object by the wrapper object;
receiving a result from the wrapped vendor object by the wrapper object;
initiating post-processing by the wrapper object; and
provide the result to the application program. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
Specification