Surety is performing system maintenance this weekend. Electronic date stamps on new Prior Art Database disclosures may be delayed.
Browse Prior Art Database

Dynamically Changing a Web 2.0 Widget Instance based on Runtime Conditions

IP.com Disclosure Number: IPCOM000190236D
Original Publication Date: 2009-Nov-23
Included in the Prior Art Database: 2009-Nov-23
Document File: 3 page(s) / 33K

Publishing Venue



Dynamically changing a Web 2.0 widget instance based on runtime conditions. The widget instance is tested for a set of predefined conditions. If the predefined conditions are met, the widget instance's method is recreated at runtime with an alternate logic to generate a new code. The recreated widget instance's method does not affect widget objects unaffected by the detected predefined conditions.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 53% of the total text.

Page 1 of 3

Dynamically Changing a Web 2.0 Widget Instance based on Runtime Conditions

During a high risk timeframe of a software project, little or no changes may be allowed to a software code in order to maintain stability. However, for special cases, a special case handling logic may be provided in the code for handling the special conditions. When special-case logic is required, it is desirable to isolate changes only to the objects of that widget instance that are affected by the special conditions.

This technique dynamically generates changes for a widget instance at runtime based on runtime conditions. If the runtime conditions match a set of predefined conditions, the widget instance's method is recreated.

Thereafter, the existing widget instance's method is replaced

recreated widget instance's method.

In an exemplary instance of this technique, a widget may create an XML schema mapping table. In special cases, the table may require further expansion, employing high risk practices. The runtime logic tests the widget instance for a set of predefined conditions that correspond to the high risk practices. On detecting the predefined conditions, the existing widget instance's method is replaced with a recreated

instance's method to handle the special condition. The replacement is performed after isolating the widget instance from the rest of the widget objects in the application. Therefore, the remaining widget objects of the application remain unaffected by the special-condition handling logic.

In an exemplary case, an alternate widget instance's method may be generated with a special condition handling logic, known ahead of time. The software code shown below replaces "normalmethod" by "normalMethodExtended" on detecting a special condition.

'specialWidget ',
. . .
earlyDetectionMethod :
function (parms) {

An alternate logic is used for recreating the

widget instance's method.

with the



Page 2 of 3

      this.normalMethod = this.normalMethodExtended;
normalMethod :
function (parms) {

       // Normal logic for every widget object instance
// except the ones with the special condition.
normalMethodExtended :
function (parms) {...