Patent ID: 8438577

Claim:
A method for extending a script language in a runtime environment of a data processing system to support an application comprising a component implemented in the script language, the runtime environment having a script language interpreter that is extended to support non-script language features, the method comprising: extending with the non-script language a predetermined object having an original method defined by the implementation of the script language interpreter to create an extended object, by defining in the non-script language a handler for handling one or both of built-in application elements and built-in data to thereby process a respective replacement method for supporting the application, the replacement method overriding the original method; dynamically registering a symbol corresponding to the handler of the extended object; detecting the symbol corresponding to the handler of the extended object in the application with the script language interpreter; calling the replacement method of the extended object from the script language interpreter; and, executing the replacement method of the extended object.