摘要:
A method, system, and apparatus for implementing object interfaces at runtime are provided. According to the method, a request is received for a resource that includes a client side object that supports an object interface. In response to the request, program code is generated that implements the interface. Once the program code implementing the object interface has been generated, the requested resource and the program code implementing the object interface are returned in response to the request for the resource. An intermediary object for mediating communication between objects is also generated and returned in response to the request. If the object interface implements an interface for consuming data, the object interface registers itself with the intermediary object as an event consumer. If the object interface implements a provider interface, the object interface calls the intermediary object in response to the occurrence of a specified type of event.
摘要:
A method, system, apparatus, and computer-readable medium are provided for exposing and utilizing property values maintained at a server computer. A request is received at the server computer for a resource, such as a Web page. In response to receiving the request, a determination is made by the server computer as to whether a property value maintained at the server computer should be returned with the resource. If the property value should be returned with the resource, the current value of the specified property is retrieve and is rendered into the resource as a variable statement specifying the current value of the property. The resource, including the variable statement, is then returned to the requesting application where it may be utilized.