Dynamic Class Loader
Original Publication Date: 2003-Mar-13
Included in the Prior Art Database: 2003-Mar-13
Disclosed is a system for Dynamic Resource Loader with Web Services. It provides a set of common interfaces for retrieving data from the backend using web services. The data obtained can be utilizied as the input of other layers or systems including presentation layer with Websphere Portale Server, XSL, and other web service calls for continuation of a process.
Dynamic Class Loader
Disclosed is a system for Dynamic Resource Loader with Web Services. It provides a set of common interfaces for retrieving data from backend using web services. The data obtained can be utilizied as the input of other layers or systems including presentation layer with Websphere Portale Server, XSL, and other web service calls for continuation of a process.
To accomplish the goal, a set of common interfaces is defined. Classes that implement the interfaces becomes the wrapper classes which will be used for locating and retiving data from the backend using web services at runtime. The use of web services enables flexibility to interface with other external system when gathering information in the distributed computing environment. Service vendors should provide the implementation of the wrapper classes. The system consists of a XML input, Form Manager for presentation layer, data bean, and the classes that implement the common interfaces. They interact in the following way.
As shown in the Figure, XML input is configuration of the service. Class name and additional parameters are obtained from the XML input. Form manager parses the XML input and forward the class name and parameters to the Data Bean. The Data Bean will create an instance of the wrapper class and place a call to the implemented interface which will make another web service call to the service to obtain data through the transportation layer. Upon recieving the data, the Form Manager will render the data and make it available to another application including WebSphere Portal Server for presentation of information. Alternatively, the rendered data can be used by other web services using the same set of interfaces in case of the continuation of a business process.
WebSphere Portal Server
Form Manager / 1XML InputPresentation Layer
rendered data for WPS
data available for WS
To implement the common interface for different objects returned to the presentation layer. The following issues are addressed.
Define a set of general interfaces of an object for data retrieval. Define a way to register the wrapper class for presentation layer to load at run time. Define a general schema to support multiple parameters to be passed to the interface upon data retrieval.
The set of interfaces that are common to all different objects have to be general so that arbitrary number of values can be returned. Three interfaces are defined for data retrieval. Each interface supports one of the following methods.
Map getValues() Map getValues(DocumentFragment) Map getValues(Document, Document, Document, DocumentFragment)
The first interface that support the method, getValues(), is to return a Map object containing the key and the string representation that will be presented in the GUI. Using the Map object as a return type of the interface enables arbitrary number of values to be returned, as well as globalization to be supported.
The second interface with th...