IP Library Granted Patent US 8,122,460
Granted Patent B2
US 8,122,460 · App. 12/100,772 · Granted Feb 21, 2012

Partial dynamic implementation of java interfaces

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,122,460
App. No.
12/100,772
Granted
Feb 21, 2012
Kind
B2
Abstract

A system and method for implementing dynamic interfaces in a JAVA program including methods having a common implementation and other methods to be handled independently. The system comprises a first dynamic proxy object implementing an invocation handler for providing default implementations; a separate object providing implementations of any method in a defined interface that requires independent handling; and, a second dynamic proxy object provided for checking a method definition object for an implementation of the method, and in response, one of: invoking the method on the separate object if the implementation exists, and if the implementation does not exist, invoking the method on the first dynamic proxy object. The second dynamic proxy object thus allows for a single implementation for repetitive methods, while allowing special cases to be handled independently.

Claims (10)

1. A system comprising: a server computer on which an object-oriented application invoking objects and methods is run, said server computer receiving calls from client devices requesting services provided by methods of said objects, and in response, configured to invoke methods having a common implementation and other methods having specific implementations to be handled independently according to a method comprising:

providing a first dynamic proxy object having an invocation handler for implementing a particular interface wherein calls to methods of the interface are translated into a single invoke method having said common implementation;

providing a method definition object providing implementations of any method in said particular interface that requires independent handling, said method definition object not implementing said particular interface; and,

providing a second dynamic proxy object for checking said method definition object for an implementation of the method, and in response, one of: invoking the method on said method definition object if the implementation exists, and if the implementation does not exist, invoking the method on the first dynamic proxy object's invocation handler, wherein the second dynamic proxy object allows for a single implementation for repetitive methods, while allowing special cases to be handled independently.

2. The system as claimed in claim 1 , wherein the object-oriented application is a Java application program, said first dynamic proxy implementing InvocationHandler class functionality for the methods that have a single common implementation.

3. The system as claimed in claim 2 , wherein said checking said method definition object for an implementation of the method further comprises:

generating a list of methods from the implemented method's object; and,

searching the list of methods from the implemented method's object to determine if said method exists in the generated list.

4. The system as claimed in claim 3 , wherein said server computer is further configured to generate said list of methods in the form of an array.

5. The system as claimed in claim 4 , wherein said server computer is further configured to sort the formed array of methods after said method list generating.

Assignments (1)
CHANGE OF NAME Recorded Dec 20, 2021
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058553/0802 →