Patent ID: 7367032

Claim:
A method for implementing dynamic interfaces in a software program including methods having a common implementation and other methods to be handled independently, comprising the steps of: a) providing a first dynamic proxy object implementing an invocation handler for implementing a particular interface wherein calls to methods of the interface are translated into a single invoke method having a common implementation; b) 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, c) providing a second dynamic proxy object for checking said method definition object for an implementation of the method, and in response, one of: i) invoking the meted on said method definition object if the implementation exists, and, ii) invoking the method on the first dynamic proxy object's invocation handler if the implementation does not exist thereby allowing for a single implementation for repetitive methods, while allowing special cases to be handled independently, wherein said step of checking a 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.