text:
|Publication number
|Publication type
|Application number
|Publication date
|Mar 1, 2005
|Filing date
|Oct 28, 1999
|Priority date
|Aug 3, 1999
|Fee status
|Also published as
|Publication number
|Peter C. Bahrs, Barry Alan Feigenbaum, Manish Mahesh Modh
|Original Assignee
|International Business Machines Corporation
|Export Citation
|BiBTeX, EndNote, RefMan
|Patent Citations (91), Non-Patent Citations (13), Referenced by (112), Classifications (16), Legal Events (5)
|External Links: USPTO, USPTO Assignment, Espacenet
This is a division of application Ser. No. 09/366,404, filed Aug. 3, 1999.
1. Technical Field
The present invention relates generally to an improved distributed data processing system and, in particular to an improved method and apparatus for creating applications. Still more particularly, the present invention relates to a method and apparatus for creating client applications.
2. Description of Related Art
Distributed data processing systems involve data transfers between clients and servers (also know as services). Typically, a client locates a server, initiates a session with a server and requests the server to perform some service. The server expects requests from a client to arrive in a particular format. A server is more complex than a client because the server typically handles a large number of clients simultaneously, often fetches and stores information from a large database, creates additional transactions for other services, performs business logic, and returns information formatted according to each client channel.
For example, data will be specified in a particular message format. A particular transmission protocol will deliver the message to the server. The server accepts the message protocol as its application programming model (API) to its services and returns a result. A variety of software systems, such as Enterprise Java Beans (EJB), Servlets, Java Server Pages (JSP), and XML have been implemented to enhance the development of client and server-side software.
Client applications perform a number of different functions. For example, the application on the client side handles the user interface and may provide program logic for processing user input. Additionally, a client application must match the requirements of a particular server to provide communications with the particular server. Clients are packaged and distributed according to the services provided by the server.
A graphical user interface (GUI) exists in the client application to handle what the user views on the screen. Events resulting from user input, such as mouse clicks or keyboard strokes, are detected and handled using "listener" processes in the application. The events are processed by program logic. The program logic may result in requests being sent to a server. Communication with the server is provided using processes that use protocols, such as hypertext transfer protocol (HTTP), secure sockets (SSL), or Remote Method Invocation (RMI).
Client software can be either "thick" or "thin". A thick client is typically a large client-installed application that may access a database directly and apply business logic. They typically have dependence on the client operating system and require manual support to install and configure. By contrast a thin client is typically a small application downloaded on request from a server and accesses the database through an intermediate application server. This is known as a multi-tier application. A number of different usage scenarios for clients are present, resulting in a variety of client needs being present. For example, it is typical that in an global enterprise Intranet, the client configuration is controlled by the business but the large number of clients includes older machines with slow networks (e.g. 9600 baud). Likewise, in the Internet, there is little configuration control by the business and it is estimated that a large percentage of clients worldwide still use 14.4K connections that result in very slow network speeds and downloads. A typical user will become very frustrated if downloads take longer than a minute or two. Further, mobile users require compact software that can be customized and packaged to fit on machines and operate disconnected from the network. Subsequent automated support to connect to the network is needed.
At the other end of the spectrum, power users with high speed connections expect screen refresh times in the sub-second range and "instantaneous" echoing of typed characters to provide the look and feel of processing in a local environment. In a multi-tier computing environment, the primary role of the client is to present and gather information quickly. The client application is considered a business asset independent of the network topology and server function. In these environments, it is desirable to be able to use the same client processing code for different user types and interface channels, such as automated teller machines (ATM), Kiosks, Internet [hypertext markup language (HTML)/applets], and regional office clients (applications).
Consequently, a common thin or thick client development environment for developing clients may be used to solve these problems, especially when the size and speed of the application download, integration and operation is important. Any software development environment should be based on sound software engineering principles.
Object-oriented languages have been employed in creating thin clients. Object-oriented programming environments have been presented as providing software reuse, which is a desirable feature in creating thin clients and reducing development time. In reality, the present object-oriented programming environments for developing thin clients are unable to provide enough object reuse and repeatability for quickly developing thin clients. Nor do they specify how to readily support additional message formats, protocols, data models and servers, mobile disconnected users, and caching.
Therefore, it would be advantageous to have an improved method and apparatus for a client development architecture that facilitates creating thin clients in a manner in which component reuse is increased while client development time is reduced, and multiple message formats, protocols, data models and servers, mobile disconnected users and caching can be readily integrated.
The present invention provides an architectural pattern for creating applications for a data processing system. A graphical user interface is created in which the graphical user interface includes a plurality of components. Processes for presenting the plurality of components and receiving user input are handled by a first set of graphical objects, wherein in response to selected user input, a first event is generated. An application object is created in which the application process controls an order in which the graphical objects present the set of components and process the event and wherein the application generates a second event. A transport object is created in which the transport object processes the second event and forwards the second event for processing to a destination within the plurality of destinations. A plurality of destination objects are created in which each destination object within the plurality of destinations objects handles accessing a destination within the plurality of destinations.
The present invention provides a method and apparatus in a data processing system for refreshing data in an application. A call is received to update data in the application, wherein the data is destined for a component in the application. A data type is identified for the data. Responsive to the data type being a handled data type, the data is formatted and a refresh is called on the component.
The present invention provides a method and apparatus in a data processing system for displaying a component or container. The container is displayed within a display using a first component. A location of the component or container is controlled within the display using a second component, wherein the second component controls the location and geometry of the component or container in response to receiving an event. The component or container is selectively displayed using a third component, wherein the third component generates the event.
The present invention provides a process in a data processing system for managing services in a desktop environment from an object oriented-environment. A presentation of a graphical user interface is controlled using a view controller, wherein the view controller handles user input to the graphical user interface. Responsive to a selected user input, the selected user input is sent from the view controller to an application mediator. Responsive to receiving the selected user input at the application mediator, the selected user input is processed at the application mediator. Responsive to the application mediator determining that a service is required in the desktop environment, an event is generated. Responsive to detecting the event at a listener object, a method is executed in the listener object to perform the service in the desktop environment.
The present invention provides a method and apparatus in a data processing system for managing transactions. A request event is received at a transporter object. The request event includes a target and an indication of how to handle the request event. A destination object is identified within the plurality of destination objects using the request event to form an identified destination object. The request event is sent to the identified destination object, wherein the identified destination object handles the request using the indication and accesses the target.
The present invention provides a method and apparatus in a data processing system for displaying a graphical user interface. A container is displayed in a graphical user interface from a set of containers, wherein a display of the container handled by a view controller from a set of view controllers. Each view controller handles the display of an associated container within the set of containers and user input for the associated container. A display of the set of containers is altered by an application mediator, wherein the set of containers are displayed in an order determined by the application mediator.
The present invention provides a method and apparatus in a data processing system for performing validation of user input. User input is received in a container displayed in a graphical user interface, wherein presentation of the container and the user input to the container are handled by a view controller. Responsive to receiving the user input, a call is sent to a validation object by the view controller. Responsive to the call, the validation object tests the user input using a criteria, wherein the rule is separate from the view controller.
The present invention provides a method and apparatus in a data processing system for managing permissions in an application. A user input is received at a container handled by a view controller, wherein the user input requests a change in permissions in the application. This user input, may be, for example, a change in security in an application through a login process. A view event describing the user input is generated. The view event is received at an application mediator. Responsive to receiving the view event, by the application mediator, a request event is generated and a permission corresponding to the user input is received. The permission alters an item, which may be in either of both the view controller and the application mediator.
The present invention provides a process and apparatus in a data processing system for presenting a view to a client. At an application mediator, a view event is received from a view controller, wherein the view event describes an action on a displayed container handled by the view controller. Responsive to a requirement that a change in a placement of the displayed container is required, a placement event is generated by the application mediator. A determination is then made by a placement listener, as to whether the placement event includes an indication that an alternate view is to be generated. Responsive to a determination that an alternate view is to be generated, a call is sent to a method in the view controller to generate the alternate view.
The present invention provides a method and apparatus in a data processing system for processing user input in a graphical user interface. A graphical user interface is presented using a view controller, wherein the view controller handles the user input to the graphical user interface. Responsive to a selected user input, an event is sent to a first application mediator. Responsive to the first application mediator being unable to process the event, the event is sent to a second application mediator for processing, wherein the first application mediator and the second application mediator handle an order in which a set of displays are displayed by a view controller.
The present invention provides a method and apparatus in a data processing system for presenting a set of screens in a graphical user interface. A first screen within a set of screens is presented, wherein the set of screens are presented using a set of view controllers. Responsive to a selected user input to the first screen, an event is generated by a view controller within the set of view controllers identifying the user input to the first screen, which is handled by the first view controller. Responsive to detecting the event generated by the view controller, a second screen from the set of screens is selected, by an application mediator, for display by sending a response to a view controller handling the second screen.
The application mediator is initialized from reading a state machine file and control processing of view event received from virtual controllers.
The present invention provides a method and apparatus in a data processing system for serializing data. A serializer receives a data element for serialization, wherein the data element includes a class name string. Responsive to receiving the data element, the serializer replaces the class name string with a code having a smaller size than the class name string to form a modified data element. Responsive to forming the modified data element, in which the serializer serializes the modified data element. This serialized data is transmitted and deserialized by a deserializer, which replaces the indicator with the class name.
The present invention provides a method and apparatus in a data processing system for providing an interface to an application for monitoring execution of the application. An event generated by a view controller is detected, wherein the view controller handles presentation of a container in a graphical user interface. A determination is made as to whether the event is an event selected for monitoring. Responsive to the determination that the event is an event selected for monitoring, a request event is generated, wherein the request event includes data from the event and a destination.
The present invention provides a method and apparatus for a data processing system for accessing classes and methods in an object oriented system. Responsive to receiving a selected user input to a container, a view event is sent from a view controller to an application mediator. The view event identifies an action taken to generate the selected user input. A request is selectively generated based on the view event, wherein the request event includes a major code identifying a class name as a destination and a minor code identifying a method name a function to be invoked. The request event is sent to a transporter. The transporter acts as a router to send the request event to an appropriate destination object from a plurality of destination objects. Responsive to receiving the request event at the transporter, the request event is sent to a destination object within a plurality of destination objects based in the class name. The destination object formats the request event into a form recognizable by the destination associated with the destination object. The destination may be located on a remote data processing system. The request event is used to access the class or method identified in the request event. The access may be, for example, an invocation of the method.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
I. Hardware
With reference now to the figures,
In the depicted example, a server 104 is connected to network 102 along with storage unit 106. In addition, clients 108, 110, and 112 also are connected to a network 102. These clients 108, 110, and 112 may be, for example, personal computers or network computers. For purposes of this application, a network computer is any computer, coupled to a network, which receives a program or other application from another computer coupled to the network. In the depicted example, server 104 provides data, such as boot files, operating system images, and applications to clients 108-112. Clients 108, 110, and 112 are clients to server 104. Distributed data processing system 100 may include additional servers, clients, and other devices not shown. In the depicted example, distributed data processing system 100 is the Internet with network 102 representing a worldwide collection of networks and gateways that use the TCP/IP suite of protocols to communicate with one another. At the heart of the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of thousands of commercial, government, educational and other computer systems that route data and messages. Of course, distributed data processing system 100 also may be implemented as a number of different types of networks, such as for example, an intranet, a local area network (LAN), or a wide area network (WAN).
Referring to
Peripheral component interconnect (PCI) bus bridge 214 connected to I/O bus 212 provides an interface to PCI local bus 216. A number of modems may be connected to PCI bus 216. Typical PCI bus implementations will support four PCI expansion slots or add-in connectors. Communications links to network computers 108-112 in
Additional PCI bus bridges 222 and 224 provide interfaces for additional PCI buses 226 and 228, from which additional modems or network adapters may be supported. In this manner, server 200 allows connections to multiple network computers. A memory-mapped graphics adapter 230 and hard disk 232 may also be connected to I/O bus 212 as depicted, either directly or indirectly.
Those of ordinary skill in the art will appreciate that the hardware depicted in
The data processing system depicted in
With reference now to
An operating system runs on processor 302 and is used to coordinate and provide control of various components within data processing system 300 in FIG. 3. The operating system may be a commercially available operating system such as OS/2, which is available from International Business Machines Corporation. "OS/2" is a trademark of International Business Machines Corporation. An object oriented programming system such as Java may run in conjunction with the operating system and provides calls to the operating system from Java programs or applications executing on data processing system 300. "Java" is a trademark of Sun Microsystems, Inc. Instructions for the operating system, the object-oriented operating system, and applications or programs are located on storage devices, such as hard disk drive 326, and may be loaded into main memory 304 for execution by processor 302.
Those of ordinary skill in the art will appreciate that the hardware in
For example, data processing system 300, if optionally configured as a network computer, may not include SCSI host bus adapter 312, hard disk drive 326, tape drive 328, and CD-ROM 330, as noted by dotted line 332 in
The depicted example in FIG. 3 and above-described examples are not meant to imply architectural limitations. For example, data processing system 300 also may be a notebook computer or hand held computer in addition to taking the form of a PDA. Data processing system 300 also may be a kiosk or a Web appliance.
II. Overview
With reference next to
In accordance with a preferred embodiment of the present invention, the present invention provides an architectural pattern for views in the client, for naviagation of views in the client, for placing and presenting views in a client, for issuing requests for different concurrent servers and services from the client, for issuing requests for client platform services from the client, for using multiple concurrent data model types in the client, for issuing multiple message formats from the client, for using multiple protocols in the client and for specific partitioning of these pattern components in the client, such as client 404. In particular, section 418 in these examples significantly defines and enhances and includes a view as Java Abstract Windows Toolkit (AWT)/(JFC) 420, a control as screen control 422, and a model as transactions 424. AWT is a tool kit containing primitives for basic windowing functionality. These primitives include user interface functionality, such as window and dialogue box manipulations, text rendering, buttons, check box, and radio button creation and manipulation, as well as graphics primitives such as line drawing, color choice. Virtually all sophisticated graphics and user-interface tools are built upon these primitives. The Java foundation classes (JFC) is a package containing, among other things, primitives for windowing functionality that provide a rich superset of AWT. These primitives or components include everything that the AWT provides along with a rich superset of new primitives, including, for example, tree view, tabbed panes, hypertext markup language (HTML) text views, etc. Java AWT/(JFC) 420 could be described through section 410.
Object-oriented design depends heavily on the class concept and the relationships between various classes. A class is an abstraction of an object that contains both attributes (data) and behavior (methods). Each new object created from a class is referred to as an instance of that class. In other words, the class is an abstract encapsulation mechanism while an instance is a particular object created from the class. If a method in a class is called, it is sometimes said a message is sent to an object.
Classes are organized into inheritance hierarchies where a parent class may have one or several subclasses. The subclasses share all the data and methods from the parent class and any other ancestor class in the inheritance tree. The search for the appropriate methods to be used starts at the class for the object and proceeds up the tree as necessary to find the desired method (the name and parameters of the method must match exactly). Multiple inheritance means that a class can have two or more parent classes. Some programming languages (e.g., C++) support multiple inheritance while others (e.g., Smalltalk) do not. Multiple inheritance is difficult to manage, so some languages (e.g., Java) provide a mechanism called interfaces that provide a type oriented mechanism to achieve a similar functionality without incurring the implementation burdens. The class hierarchy diagram is based on a Java implementation and makes extensive use of the interface mechanism.
III. Architectural Pattern
The present invention provides a method, apparatus, and instructions for an architectural programming pattern and implementation. The architectural pattern of the present invention is illustrated as a Java implementation for building thin (or thick) client applications and is also referred to as "JTC." JTC is a process, architectural pattern, and implementation to guide developers on how to build applications, and in particular, Internet style thin clients. JTC adapts to Internet changes rapidly. JTC increases developer discipline by providing a common repeatable programming pattern. JTC facilitates project management by providing for concurrent development of the client. JTC facilitates project management by providing for concurrent client and server(s) development. JTC provides for a natural partition of various programmer skills. JTC has a formula based approach for cost estimates. JTC provides multi-channel support (ATM, Internet, Kiosk, Extranet, Mobile, Branch, Call Center, Business partners, etc.). JTC supports mobile user disconnected mode. JTC provides natural support for multiple servers with reduced code level cohesion and coupling. JTC provides natural support for multiple data models such as, for example, XML, DHTML, Objects, Key/Value, EJB, streaming and asynchronous. JTC has natural support for multiple protocols, such as, for example IIOP, RMI, Sockets, HTTP, HTTPs, and Files. JTC has natural support for client Java accessible RS232 devices and APIs such as currency counters, J/XFS, printers, and coin dispensers.
With reference now to
User inputs occur on the components, containers and beans controlled by ViewController 502. This user input is in the form of an AWTEvent 508 in the depicted examples. The AWTEvent 508 may be, for example, the click of a mouse button selecting a graphical button such as an "okay" button. In response, ViewController 502 will fire ViewEvent 510. ViewEvent 510 will contain major and minor codes that add more semantics than the AWTEvent 508. The changed data that may have been modified or entered by user or a reference to the data model may also be supplied for further semantics. AWTEvents 508 are not visible outside of the ViewController 502.
Next in architectural pattern 500, ApplicationMediator 512 is a form of a ViewListener in the depicted examples. ApplicationMediator 512 is the interface used to specify default behavior to control ViewController 502 as well as other ApplicationMediators 512. ApplicationMediator 512 will also mediate between ViewController 502 generated ViewEvents 510 and PlacementListener 514, TopListener 516 and Transporter 524. In this pattern, PlacementListener 514 is employed to manage the placement/containment of ViewControllers, such as ViewController 512 on the screen of a computer. PlacementListener 514 will manage ViewController 502 in response to a PlacementEvent 518 received from ApplicationMediator 512. For example, for a given component, container or bean represented by ViewController 502, PlacementListener 514 will control how ViewController 502 is placed on a screen, such as possibly in the south of a frame with a border layout.
ApplicationMediator 512 controls the ordering of ViewControllers, not the placement of ViewControllers. As a result, complete separation between view creation and layout by ViewController 502, view ordering and mediation by ApplicationMediator 512, and view placement by PlacementListener 514 is provided. This mechanism in architectural pattern 500 increases the reusability of ViewControllers, ApplicationMediators, and PlacementListeners. PlacementEvent 518 is used to notify PlacementListener 514 if ViewController needs to be adjusted on the screen.
Next, TopListener 516 is an interface that performs specific desktop duties, such as, for example, the launching of an application, performing a desktop shutdown, displaying a message on the desktop, displaying a context sensitive title on the desktop or reconfiguring and non-intrusive observing the JTC application. TopEvent 520 is used to send a message to the TopListener to indicate that some action is needed on the desktop.
A desktop provides the operating-specific functionality of a windowing system and application management. For example, in Windows 95, the graphical interface that starts up is called a "desktop". The Windows 95 GUI itself is the "desktop system". Additionally, a desktop application provides a view or window in which an application may run and launch other applications. This is typically accomplished by a display of a hierarchical list of applications, which may be selected and "launched".
ApplicationMediator 512 may generate and receive RequestEvents, such as RequestEvent 522. A RequestEvent, as used herein, represents a "lightweight transaction" that is used as an indication that an event and a service is required to process the event. A RequestEvent 522 is identified by major and minor codes. In addition, a reference to a data model may be included for additional semantics. In turn, Transporter 524 in architectural pattern 500 is used to map RequestEvents, such as RequestEvent 522, to Destinations 528, 530, and 532. In other words, Transporter 524 acts as an event broadcast mechanism within architectural pattern 500. Transporter 524 will route RequestEvents, such as RequestEvent 526 to various Destinations, such as Destination 528, Destination 530, or Destination 532. These destinations will interpret the RequestEvent 526, locate a server, create a message format, create a protocol and deliver the information to the server's service for processing. These response data will be returned to the Transporter 524 in a RequestEvent, such as RequestEvent 526. In turn, Transporter 524 will return the RequestEvent to ApplicationMediator 512, which will process the data contained in the event accordingly. For example, the return data may be sent to ViewController 502 to refresh the view displayed on the screen to the user. If an error occurs, a RequestException 534 may be generated and returned to Transporter 524 and returned to the ApplicationMediator 512.
The ApplicationMediator 512 can fire RequestEvents to the Transporter synchronously, asynchronously and repeating asynchronously. A synchronous RequestEvent will block the ApplicationMediator and either an error RequestException will be thrown or a possibly modified RequestEvent will contain the results. An asynchronous RequestEvent will return immediately. The error RequestException or a possibly modified RequestEvent will later be "called back" to the ApplicationMediator at the requestException and requestResponse interface, respectively.
In depicted examples, a type Object data, such as Data 536 may be passed in reference by ViewController 502 to a Destination such as Destination 1 528. This data is passed via different events, such as ViewEvent 510, RequestEvent 522, and RequestEvent 526. Changed data, such as Data 538 may be returned from a Destination to ViewController 502 for display. This type Object data may take various forms, such as Extensible Markup Language (XML), String, Hypertext Markup Language (HTML), key/value, Remote Method Invocation (RMI), J/XFS, RS232, etc. The ViewController reads and modifies the Object data but does not create the data and the Destination creates, reads and modifies the Object data and sends it to and receives it from a server.
In addition, architectural pattern 500 also includes a Factory 540, which is used to allocate objects. Factory 542 is employed to also allocate singleton objects.
JTC 544 the system also contains a JTC interface implemented by all major objects in a JTC application including ApplicationMediator, ViewController, Destination and Transporter. Together, the objects implementing the JTC interface give the external appearance of a single application as they implement and propagate the required JTC interface methods.
The architectural pattern separates ViewController 502 (GUI view) from ApplicationMediator 512 (GUI state transition) from PlacementListener 514 (GUI placement) from RequestEvent 522 (lite transaction) creation from Destination 528 (transaction dispatch) from data creation 528, from data usage 502, and from transaction fulfillment.
The JTC interface of the present invention provides automatic non-intrusive tracing of application, and automatic non-intrusive event logging of application.
The ValidationRules provide class separation of chained field validation logic from both GUI and data model. Also the ValidationRules can run on client, server, or both.
The Destinations provide plugable data model, network protocol, and message format modules for remote or local fulfillment. Further, Destinations can support both local and remote configurations in addition to multiple chains of them being called FIFO. The simpler the Destinations, the thinner the application. The more complex the Destinations, the thicker the application.
The ApplicationMediators can be nested.PlacementListeners provide for partitioning of how to place components on the screen from what the components are and what order they arrive. RequestEvents (lite transactions) can be broadcast to multiple servers using multiple network protocols with various data and message formats.
The architecture also provides permission keys to support intra and inter ViewController and ApplicationMediator user ID and/or group enabling and disabling, and provides settable generic field level, focus level, and RequestEvent level ValidationRule invocation.
The ViewControllerBaseImpl provides a mechanism to switch between various graphics containers. The example code described herein is illustrated in Java, but the processes of the present invention may be applied to other programming languages.
IV. Class Hierarchy
With reference now to
With reference now to
UML diagram 700 uses the following conventions. A sub-interface of another interface (e.g., ViewController 702 to JTC 742) or a subclass of another class (e.g., ViewControllerImpl 704 to ViewControllerBaseImpl 706) is shown by a solid line from the subclass to the parent class where there is an open arrowhead. If a class is used to implement an interface, then a dashed line goes from the class to the arrowhead at the interface (e.g., ApplicationMediatorImpl 720 to ApplicationMediator 718). A class or interface may be aggregated into another; this is indicated by a solid line connecting to a small diamond (e.g., ViewEvent 714 to ViewListener 718). The end with the small diamond represents the class that is aggregating (or containing) the class at the other end. The multiplicity of the association is indicated by numbers at each end of the line, such as ViewEvent having multiplicity of 0 to many (with "many" indicated by "*") and ViewListener 718 having multiplicity one. So each instance of a ViewListener 718 may contain zero or more instances of ViewEvent 714.
Occasionally, alternative methods may be present for implementing an object. For example, ViewControllerBaseImpl 706 may implement a Container by either using the Java Abstract Window Toolkit (AWT) Panel 707 or a JFC 709. The small dashed lines indicate a choice.
Turning now to a discussion of the classes illustrated in
With reference now to
The ViewControllerImpl 704 is an abstract class implementation of ViewController. ViewControllerImpl 704 and ViewController 702 are the basic GUI building blocks for thin clients. ViewControllerImpl 704 provides the function that will be required by a subclass (not shown) ViewControllerImpl 704 is controlled and mediated by an ApplicationMediator. ViewControllerImpl 704 extends the ViewControllerBaseImpl class and implements the ViewController interface so as to support the event handling methods and provide a default implementation for the other ViewController methods. This class maintains a reference to the client data model, the user validation level, and the UI properties and resources. Methods are present to add and remove listeners for view events generated, fire (send) view events to the appropriate listeners, cleanup list of event listeners on clear and exit, and enable or disable the panel.
With reference now to
ViewControllerImpl 704 is usually a Java Component or Container or bean with the extra methods specified here. The basic operation of a ViewControllerImpl is handles using the following steps: (1) implement the ViewController and JTC interfaces; (2) add your bean specific methods; (3) create and compose GUI; (4) return the Component in getComponent ( ); (5) return and set permission keys, resources and properties when asked; (6) update permission keys, resources and properties when asked; (7) handle internal AWT events; (8) validate and format fields with ValidationRules; (9) issue ViewEvents for semantic interpretation; (10) return to the AWT Thread as soon as possible; (11) handle refresh(data) calls by updating GUI; (12) access data; and and (13) repeat from step (3).
ViewControllerImpl 704 is controlled and mediated by an ApplicationMediator. The default function provided by this class includes: from ViewController interface: add/remove ViewListener, fireViewEvent, setValidationLevel, refresh, getComponent, and AWTEvent threading. From the JTC interface, the functions provided include: clear, exit, set/getEnabled, set/getVisible, and toString.
ViewControllers know the full semantics of the data model being used, even though only a generic Object data; type reference is provided. The ViewControllers will cast generic reference into Class based data objects. Some design principles to use in ViewControllers when deciding how to communicate information to ViewListeners are described below.
A ViewEvent is created, its setter methods are called, and it is fired to the ViewListeners. The listeners interpret the major and minor codes to decided what to do.
To provide additional information, the ViewController can set a Java data object in the ViewEvent using the setData method. The data reference can be simple String objects or user defined data objects.
A similar approach to provide additional information is for the ViewController to supply application defined objects using the setData method. The data reference are more complex than simple objects (i.e. Customer, AccountInfo, Schematic, CarSpec, etc.)
The ViewController also can provide named methods. For example, a ViewListener may call customerVC.getCustomerName( ) to retrieve the customer name. The implementation of getCustomerName is hidden by the ViewController and could involve manipulating several Java Components. In addition, setters may also be provided, such as VC.setCurrentCustomer ( ). In general, too many named methods may suggest that information sharing should be via data objects within ViewEvents and refresh methods instead. The use of named methods may reduce reuse of a ViewController by an ApplicationMediator.
The ViewController may listen to property change events on a data model using standard Java mechanisms. Thus, the ViewListeners, the ViewControllers, or any other interested object can communicate via the data model changes. In general, this is very data-oriented object model programming approach and can lead to object-spaghetti code. Changes in the data model ripple throughout the application.
ViewControllerBaseImpl 706 is an abstract class and is a superclass of ViewControllerImpl 704. This class provides the indirection to allow specification of the Component type of the ViewController via a "has a" and/or "is a" relationship. The idea is for the developer to replace this class entirely with the developer's own implementation. This replacement may be accomplished by creating the developer's own implementation of ViewControllerBaseImpl that implements the methods getcomponent( ), setEnabled(boolean enable), and setVisible(boolean visible). ViewControllerBaseImpl 706 is generally used with either JPanel 707 or a java.awt.Panel 707 by changing the inherits statement. ViewControllerBaseImpl may also be used with any Java or user-defined component or container. The variables, constructors, and methods for ViewControllerBaseImpl 706 are found in
ViewControllerAdapter 708 is an abstract class and is a helper adapter class that fits between ViewControllerImpl 704 and the developer's subclass. ViewControllerImpl 704 implements almost all of the standard Java AWT listeners and provides empty methods. This class allows ViewControllers to be implemented without having to specify all of the methods of a Java AWT listener interface when a subclass being created needs only one such method.
ViewControllerAdapter 708 implements the following AWT event listeners: AdjustmentListener, ComponentListener, FocusListener, ItemListener, KeyListener, MouseListener, TextListener. This class knows about everything that ViewControllerImpl knows, and also knows the default empty implementation of AWT event listener methods. The methods on the class allow for adding and removing of listeners for view events generated, firing (sending) of view events to the appropriate listeners, cleaning up the list of event listeners on clear and exit, and enabling or disabling the panel.
ValidationRule 710 is an abstract class for class-based value validation rules used to validate and format ViewController contents. Validation is normally used for single or groups of text fields (user entry) Examples include range checking, date, social security number, or other business specific formats. The definition of the validation rules are kept out of the data models and ViewControllers to maximize reuse of validation logic. These types of objects only encode which rule to use.
Typically, validation rules have two methods: (1) edit and (2) normalize. The edit method is used to input a string, validate the value and output the view friendly formatted string. The normalized method is used to input a string, validate the value and output a string that will be set into the data model and/or transmitted via a RequestEvent to a destination. For example, given a value of "1000.0", edit will produce "$1,000.00" and normalize will produce "1000". The ValidationRule 710 provides two static helper functions to apply edits or normalizes on an input string given a list of edit rule class names. This is called ValidationRule chaining. In this manner, ValidationRule 710 allows a developer to keep the implementations of validation rules small and simple so as to maximize reuse of validation code. Additionally, ValidationRule 710 may be run on a server. The methods can create an instance of a ValidationRule given a class name, apply edit rules sequentially on a string given a list of ValidationRule class names, or apply normalize rules sequentially on a string given a list of ValidationRule class names. Invocation of a validation rule is initiated by the ViewController or some business logic method. In case of failure, a ValidationRuleException is thrown.
With reference now to
ValidationRuleException 712 is a class that extends the Exception class in Java to represent the type of exceptions thrown by rules defined in ValidationRule 710. ValidationRuleException 712 is generated when a validation rule has failed. The cause of the failure is contained in the exception. In the depicted examples, processing of remaining validation rules will halt. This class needs to know the validation rule exception string.
With reference now to
ViewEvent 714 is a class having a mechanism used for communication between ViewControllers and ViewListeners, such as ApplicationMediators and between ApplicationMediators. Notification occurs when a significant AWTEvent has occurred that the ViewController cannot handle. Both ViewControllers and ApplicationMediators can fire ViewEvents. The ViewEvent state includes a major code, a minor code, a source Object of the event, and a generic Object data reference. Numerous predefined major codes and minor codes are provided and a subclass can define additional application specific codes.
When a ViewController fires a ViewEvent, it is handled in the ApplicationMediatorImpl superclass first and then forwarded to the ApplicationMediatorImpl subclass in the processViewEvent method. This mechanism allows threading and queuing to be handled by the superclass. Dispatching a ViewEvent to a subclass is performed in one of two ways: queued-event dispatching and thread-event dispatching.
With reference now to
ViewListener 716 is an interface for receiving ViewEvents generated by ViewControllers. The listener will be called back on the viewEventPerformed method. ViewListener 716 interprets the values from the ViewEvent and decides what action to take. If more information needs to be conveyed, ViewListener 716 gets the data variable. A ViewListener can set the ViewEvent to be consumed. When the ViewEvent is consumed, the ViewEvent will not be forwarded to other ViewListeners.
Turning now to FIGS. 15A and l5B, diagrams illustrating a variable and a method for ViewListener 716 are depicted in accordance with a preferred embodiment of the present invention. The variable for ViewListener 716 is shown in table 1500 in FIG. 15A. The method used in ViewListener 716 is shown in table 1502 in FIG. 15B.
ApplicationMediator 718 is an interface that specifies methods for the management of PlacementListeners, ViewListeners, RequestListeners, TopListeners, permissions, properties, resources, visibility, validity. ApplicationMediator 718 also defines a generic method to refresh data. ApplicationMediator 718 defines the interface for a class that will mediate multiple ViewControllers or other ApplicationMediators. Methods are provided in this class to add and remove PlacementListeners for the ViewControllers, to add and remove TopListeners for the ApplicationMediator, to add and remove RequestListeners for RequestEvents generated, and to add and remove ViewListeners for ViewEvents passed up from the ViewControllers. Other methods in the ApplicationMediator 718 set the data used by the ViewControllers, tell where and how to handle ViewEvents generated by ViewControllers, and generate RequestEvents based on some application logic of ViewEvents. Methods are provided in this interface to set the property information and the resources used by the ViewControllers.
ApplicationMediatorImpl 720 is an abstract class, implements the ApplicationMediator interface, and provides default behavior to manage ViewControllers, ApplicationMediators, add/fire/remove of PlacementListeners, RequestListeners, ViewListeners and TopListeners. A subclass of ApplicationMediatorImpl 718 should focus on managing the state machine for ordering the ViewControllers it creates and the mediating of events. This focus includes determining which ViewController to allocate, which ViewController to make visible, when to fire a PlacementEvent, when to fire a RequestEvent, and when to fire a TopEvent. A default list is provided to hold ViewControllers. The default list is a Vector and is directly available to subclasses. An ApplicationMediatorImpl 720 may create other ApplicationMediators. As a result, a list to hold ApplicationMediators also is provided.
The helper methods initApplicationMediators and initViewControllers will load their respective classes and store them in Vectors. The helper methods getAM, getVC, setAM, and setVC provide a way to get/set the elements in the Vectors.
When a ViewController fires a ViewEvent, the ViewEvent is handled in ApplicationMediatorImpl 720 first and then forwarded to the subclass (not shown) in the processViewEvent method. This process allows threading and queuing to be handled first by ApplicationMediatorImpl 720.
ApplicationMediatorImpl 720 needs to have reference to the client data model, PlacementListeners, TopListeners, ViewListeners, ViewControllers, other ApplicationMediators, UI properties and resources, and Event processing threads.
Methods are provided in ApplicationMediatorImpl 720 to add and remove listeners for ViewEvents generated or forwarded from a ViewController, to fire (send) ViewEvents to the appropriate listeners, to add and remove listeners for RequestEvents generated, and to fire TopEvents and to fire (send) synchronous or asynchronous RequestEvents to the appropriate listeners. Other methods add and remove listeners for PlacementEvents generated, fire (send) PlacementEvents to the appropriate listeners, and cleanup a list of event listeners and event processing threads on clear and exit. It is also possible to enable or disable the visibility, create, initialize, and manage ViewControllers, and to create, initialize, and manage other ApplicationMediators. Other methods get references of all JTC objects managed, set client data references for all ViewControllers and ApplicationMediators managed, add TopListeners, and handle the processing of a received ViewEvent in a separate thread (either in a queue fashion or unique thread per event).
Turning next to
With reference now to
PlacementEvent 722 is a class used to notify PlacementListeners that a ViewController needs to be adjusted on the screen. The value stored in a PlacementEvent 722 are: (1) major code indicating the placement type; (2) minor containing additional information; (3) source, which indicates the sender of the event; (4) Component, which is the ViewController's component; and (5) data, which is a generic Object data, containing the type to pass more information and is typically not the same type of data sent in ViewEvents and RequestEvents. Predefined placement types, which are used as major codes include, for example, add, remove, and modify. A subclass may define more application specific PlacementEvent codes. Additional information may be conveyed through the use of the minor variable or by supplying real data.
With reference now to
PlacementListener 724 is an interface used to manage the placement of ViewControllers on the screen. For a given component or container, such as a ViewController, PlacementListener 724 controls the placement while ApplicationMediator controls the ordering of ViewControllers instead of their placement. For example, if a designer wishes to create a split pane with a tree in the left pane that allows selection of ApplicationMediators, ViewControllers will display on the right. As a result, an "add" method is called to the split pane. If a frame is used, "add" has a different syntax. An object handling placement of components will register as a listener for notifications to place objects on the screen. This role is the one played by PlacementListener 724. The ApplicationMediator controls the ordering of ViewControllers, not their placement. A PlacementListener adds itself to a PlacementEvent generator and is called back with a PlacementEvent which indicates a desired action. This mechanism allows complete separation between view creation (ViewController), view ordering (ApplicationMediator), and view placement (PlacementListener). This arrangement increases the reusability of ViewControllers and ApplicationMediators to nearly 100% with respect to placement.
With reference now to
TopEvent 726 is a class used to notify TopListeners that ApplicationMediator needs some desktop function to occur. The value stored in TopEvent include: (1) major, which identifies the TopEvent type; (2) minor, which contains additional information; (3) source, which identifies the sender of the Event; (4) consume, which will result in the Event being processed if true; and (5) data, which is a generic object data used to pass more information. Predefined types, which are used as major codes include, for example, EXEC, BROWSER, , TITLE, STATUS, and OS. This category of types is used for interaction with the desktop (operating system, browser, other applications). Additional major codes include TRANSPORTER, DESTINATION, APPLICATION_MEDIATOR, REQUEST_EVENT, VIEW_CONTROLLER, VIEW_EVENT, TOP_LISTENER, TOP_EVENT, PLACEMENT_LISTENER, PLACEMENT_EVENT, MAJOR, MINOR, AWT_EVENT, and JTC. This category of types is used to indicate a reconfiguration of the JTC application. Additional TopEvent codes may be defined through the use of subclasses. Additional information may be conveyed by using the minor variable or supplying real data.
With reference now to
Table 2000 in
TopListener 728 is an interface that performs business specific desktop duties for a display. TopListener 728 provides an interface that is highly customizable for each business application. This interface specifies a topEventPerformed method to receive a TopEvent encoding a task to be performed.
With reference now to
The RequestEvent 730 is a class that extends EventObject to represent RequestEvents generated by ApplicationMediators. This class represents a lite-weight transaction. The instances of this class denotes a unit of work. RequestEvent 730 represents a request for a transaction or data from a source external to the application. The request is handled by a remote or local destination. The Transporter is responsible for mapping RequestEvents to Destinations. The state of a RequestEvent 730 includes the following information: (1) major code identifying a family of RequestsEvents; (2) minor code identifying a specific request under the family); (3) version, which is usually user defined; (4) status which may be an appended string showing the stages of processing; (5) consume (a consumed Request Event will cause JTC to stop processing the Request Event); and (6) data, which may be, for example a reference to generic Object data. A RequestEvent can be set to be consumed in which case Destinations and the Transporter will halt forwarding of the RequestEvent and return control to the ApplicationMediator.
Turning now to
RequestException 732 is a class that extends Exception to represent the type of exception thrown when there is a problem in submitting a RequestEvent. This class is used when the processing of a RequestEvent causes an error condition. This exception can be thrown directly when a synchronous or asynchronous RequestEvent is performed. This indicates failure in synchronous processing or failure in the fire mechanism. The exception can be thrown indirectly when asynchronous RequestEvent is processed. The cause of the failure is also indicated in the exception in the depicted examples. Thus, this class needs to know the string representing the reason for the RequestEvent exception.
With reference now to
The RequestListener 734 is an interface that defines the method for a class to implement for receiving synchronous or asynchronous RequestEvents. This interface is implemented by classes that want to listen and be notified when a RequestEvent is fired. A typical example is a Transporter instance. The RequestListener is added to an ApplicatiorMediator as a listener for RequestEvents. Two styles of notification are possible: synchronous and asynchronous. The Transporter implements the RequestListener interface to map RequestEvents to Destinations. Other classes can implement the RequestListener interface and register for RequestEvents to monitor them. A RequestException can be thrown directly when invoking synchronous and asynchronous RequestEvents or on a callback when invoking only asynchronous RequestEvents.
With reference now to
RequestResponseListener 736 interface is implemented by a class that requires asynchronous RequestEvent processing. For example, when an ApplicationMediator implements this interface, it will be called back on one of the two methods after it fires asynchronous RequestEvents. Successful RequestEvents are returned through the requestResponse method and passed a RequestEvent that may have new data. Unsuccessful RequestEvents are returned through the requestException method and the RequestException contains the reason.
Turning now to
The Transporter 730 is a class that implements the JTC and RequestListener interfaces. The primary function of Transporter class 730 is to map RequestEvents to Destinations. In other words, Transporter 738 acts as an event broadcaster to route RequestEvents to the appropriate Destination. Typically, ApplicationMediators fire RequestEvents which are routed to a Destination by the Transporter. The Destination processes the RequestEvent by performing some interpretation and sending them to a target, such as a server. This event broadcasting is performed by Transporter 738 based on the major code of the RequestEvent in the depicted examples. Transporter 736 needs to know the Destinations, the major codes registered by the Destinations, RequestEvents, RequestResponseListener, and RequestExceptions.
Methods are provided in Transporter 738 to register a Destination that processes RequestEvents with a specific major code, remove the registration of a Destination, receive a RequestEvent for synchronous or asynchronous processing, handle the processing of a received asynchronous RequestEvent in a separate thread (either in a queue fashion or unique thread per event), and return a list of Destinations registered for a specific key (major code). Other methods cancel the processing of an asynchronous RequestEvent, cleanup threads and lists of Destinations on clear and exit, enable or disable the sending of RequestEvents to Destinations, and enable or disable the tagging (status setting) of RequestEvents.
With reference now to
Turning now to
The Destination 740 is an interface used to pass results or events. This interface is implemented by classes that want to listen to Transporters and send RequestEvents to servers. Destination 740 performs the following functions: (1) server: locate it; (2) network transports: create the low level protocols such as sockets, RMI, URLs, Files, etc.; (3) server types: be able to talk to different servers such as EJBs, Servlets, web servers, legacy, etc.; (4) message formats: be able to turn RequestEvents and data into formats that the servers understand; (5) timeouts: finish the job in the appropriate amount of time or cancel the operation; (6) retries: how many times should a connection be tried; (7) caching: save data until it becomes stale; (8) stale data: detect stale data; (9) heart beats: I am alive; (10) logging: save pre and post RequestEvents; and (11) objects: locate them, create them.
Example Destinations behaviors include the following: (1) serializing a request and writing it to a socket, (2) reading and writing requests and responses from a file for demonstrations, (3) casting the data in a RequestEvent into objects and so that RMI methods are visible, (4) debugging, (5) tracing, (6) compression, (7) encryption, and (8) translation.
A Destination 740 is first added to a Transporter as a RequestListener, listening for RequestEvents of a specific major code. When RequestEvents enter the Transporter, these RequestEvents are sent to each listening Destination via a requestEventPerformed. Additionally, a Destination monitors the state of the consumed attribute of the RequestEvent and will terminate processing when the state is true.
RequestEvents are identified by a major code (represents a family of Requests) and a minor code (represents a specific Request). Destinations are added to the Transporter as DestinationListeners specifying a major code for RequestEvents they are interested in receiving. The Destination is called when the major code of the RequestEvent matches the Destination's major code. Multiple Destinations can listen for the same RequestEvent major code and results of one Destination can be passed to the next Destination. RequestEvents are processed in a first in first out (FIFO)/first exception first return (FEFR) order.
With reference now to
DestinationImpl 742 is an abstract class that implements the Destination interface and provides a default implementation for the Destination interface methods. It needs to know whether the Destination is enabled or disabled, whether the RequestEvents are tagged with a status or not, and the RequestEvent processing timeout value. Methods are provided to enable or disable the processing of RequestEvents in the Destination and to set the RequestEvent processing timeout value.
With reference now to
JTC 744 is an interface that provides a top level interface in the architecture of the present invention. All major objects in a JTC application implement this interface including the driver programs that launch the application/applet. This interface provides the ability to reference all objects using a single type. The behaviors expected include clear, exit, getJTCs, init, isEnabled, setEnabled, and toString. The interfaces that extending JTC are ViewController, ApplicationMediator, and Destination. The classes implementing JTC are ViewControllerImpl, ApplicationMediatorImpl, Transporter, and DestinationImpl.
Of particular importance is the getJTCs( ) method. Each JTC object returns the other JTC objects it creates. Iteration over these objects is possible. Inspection of the object types and addition of the appropriate listeners may be performed. This interface provides a mechanism for non-intrusive logging, tracing and debugging.
Factory 746 is a class used to make objects. This class is the place for code relating to prefetching, caching, and alternative "styles" for the new operator (or construction of objects), or loading a serialized object. The alternative "style" may be, for example, using Class.forName. The default behavior of a Factory includes, for example, creating a single object. Additionally, the behavior may include returning a previously created object if a key has been used or otherwise creating a new object and remembering the object.
Further, Factory 746 may be used to create multiple objects. Also, if a key[i] has been used, a previously created object may be returned. Otherwise, a new object [i] may be created and remembered by the Factory. For example, on a single JVM, a designer may want to create a single shared instance of a Transporter. Each access to the Transporter should be as follows: Transporter t=Factory.newInstance (com.ibm.jtc.Transporter, true). In this case, the Class.forName method is used with the key to create an instance of the Transporter. The true value indicates that a singleton may be created. The singleton may be turned off in which case all objects created are new and not remembered. Another key also may be used besides the class name. An example is as follows: Customer c=Factory.newInstance ("CUST", com.abc.Customer, true). The user can create a single object or create multiple of objects. For example, on a single JVM, a user may want to create and share one instance of a Transporter. The Factory class needs to know the list of singleton classes managed. The methods in this class provide several ways to create an instance of a class given one or more full path class name strings. The Factory class also can remove stored references of singleton classes.
With reference now to
Q 740 is a class representing a queue of objects that are added and removed in first-in first-out (FIFO) ordering. The size of the queue can be set to a maximum or as unbounded. The structure maintains the queue of objects, the current size of queue, and the front and back ends of the queue. Methods are provided to add an object to the back end of the queue, remove an object from the front of the queue, and predicates to check if the queue is empty or full.
JTC 744 is a top level interface, which all major objects in an application created using the architecture of the present invention should implement. This would include driver programs that launch the application. This interface allows referencing of objects with a consistent type and a similar expected behavior.
Of particular importance in this class is the getJTCs( ) method. Each JTC object returns the other JTC objects it creates. With this interface, a process can iterate over these objects, inspect their types, and add the appropriate listeners. The system may be reconfigured through this interface. This reconfiguration includes, for example, disabling the Transporter, adding a priority Destination, and consuming an event. This interface provides an excellent mechanism for non-intrusive logging, tracing and debugging. For example, if a program Test1.java implements JTC, it will return the Transporter, ApplicationMediators and Destinations it creates.
With reference now to
V. Steps in Building an Application Using the JTC Architecture
A thin client application or a thick client application that follows the JTC architecture of the present invention can be built using a top-down, bottoms-up, or from the middle approach. All approaches allow for concurrent development within the JTC client application. All approaches all for concurrent development of the JTC client application and the server and services.
The following steps show a bottoms-up process. A proper design of interfaces and subsystem models, will ensure that the JTC application can be implemented in parallel.
A. Design Client Application Subsystems
The key to the successful implementation of a JTC application that has reusable and maintainable parts is the proper division of the application into logical subsystems. This division should be driven by the analysis of the application's domain. For example, using an object-oriented analysis of the application's domain, sets of use cases can be developed in the following manner. The actors external to the system are identified. For example, in designing an automated teller machine (ATM) the customer using the machine would be an actor and the bank's central computer is also an actor. The use case is a set of interactions the actor or actors have with the system. All sequences of interactions, including normal and exceptional behavior, should be specified. For example, normal behavior for withdrawing cash from an ATM would include a sequence of prompts and customer responses that eventually lead to the dispensing of cash. Exceptions would include an unreadable card, an incorrect PIN, insufficient cash in the machine, insufficient funds in the account, etc. Use cases can include a set of preconditions and post-conditions. A precondition for the ATM would be possession of an ATM card and a post condition, if the cash withdrawal is successful, would be an appropriate debit from the account balance.
The use cases produce natural divisions of function in an application. Use cases describe functions of the application that are most likely to be reused within and outside of the application. Each use case or possibly a group of fine-grained related use cases should make up the logical subsystem model. Groups of ViewControllers and ApplicationMediators are implemented in these subsystems. A ViewController is used to represent a single reusable screen or grouping of information to be inputted and/or displayed. An ApplicationMediator mediates multiple ViewControllers for a single application function or use case.
Other subsystems of the client application include a communications subsystem, a client startup subsystem, reusable graphical components, business validation rules, and enterprise policies.
The business logic and central data management of an application should be separated out from the JTC application. This business logic and data can be physically located on any machine. JTC clients typically do not keep or manage transaction states; server side business logic manages the transaction states. Therefore, the communications subsystem is responsible for the sending of data requests and transaction requests to the business logic outside of the application. This consists of the implementation of RequestEvents and Destinations.
A client startup subsystem manages the client application lifecycle and overall look and feel. This subsystem includes implementations of TopListeners and PlacementListeners.
Common reusable graphical components used by user interface panels should be separated out in their own subsystem so that they are designed and implemented for reuse and available to other subsystems and applications.
The rules for validating user input for display format and persistent storage should be separated into another subsystem. This allows for central maintainability of the rules and reuse across all other subsystems and applications. ValidationRules are implemented in this subsystem.
Enterprise policies include functions related to security, login/logout, users/groups/roles, profiles, locale, and languages. These requirements cross subsystems in a consistent and easily managed manner through methods including set/getProperties, set/getResources, set/getPermissions. Additional non functional enterprise polices such as caching, data pre-fetching and mobile users are implemented in common easily configurable Destination subsystems.
In a bottoms-up approach, the client data model should be developed next for the specific subsystem. This model specifies the structure and contents of data used by the client application. There are a variety of approaches to a client data model: Local Object Model, Workflow Object Model, XML, Named Methods, Key/Value Pairs, Ordinal Positioning, RMI, etc. To optimized concurrent development with the server and services, a bootstrap Key/Value data model is a sufficient and expeditious choice.
Once a data model approach is chosen, then the data objects must be created. These can be grouped and organized at different levels of granularity. In general, each component, such as, for example, a ViewController or an ApplicationMediator, should only reference the data the component uses or manages. For example, a ViewController should only have data required to be displayed on a single screen and the data input by the user on that screen.
B. Create a ViewController
In these examples, a ViewController is a panel that contains one reusable screen of user display and input. This screen can either contain Java Abstract Windowing Toolkit (AWT) components or Java Foundation Classes (JFC/Swing) components. The way to choose between the two types of components is to implement the ViewControllerBaseImpl class. The ViewControllerBaseImpl class can extend AWT's Panel class or JFC's JPanel class. Also ViewControllerBaseImpl can just contain a component, container or bean and return it in the getComponent( ) method. In a graphical user interface, components are organized into manageable groups through the use of containers. Additionally, a container may provide basic window and dialogue services. A java.awt.Panel itself is a pure container. A java.awt.Panel itself is not a window in itself, but its sole purpose is to organize components in a window. With reference now to
As part of component initialization, the ViewController is added as its component's event listeners (step 3110). The event listeners are implemented for the components (step 3112). ValidationRules are used to validate user input from a component event (step 3114). Use ViewEvents (described below) to send user inputted data or requests for more data from an ApplicationMediator. The fireViewEvent method and the ViewEvent listeners are used to process the event (step 3116). If another ViewController needs to be displayed, use a ViewEvent to represent that request and have the ApplicationMediator process that request.
VIII. Create ValidationRule(s)
Turning now to
C. Create a ViewEvent
With reference now to
D. Create an ApplicationMediator
An ApplicationMediator class is typically present for every application function or use case of the system to be developed. An ApplicationMediator creates one or more ViewControllers to complete its function. It may also create other ApplicationMediators for nested functions or use cases. With reference now to
ViewEvents from all ViewControllers and ApplicationMediators created by the current ApplicationMediator are processed in this method. This method is called in a separate thread from the AWTEvent thread by the viewEventPerformed( ) method of ApplicationMediatorImpl, so that user processing can continue. RequestEvents are created for any requests for data or transaction to be processed by business logic outside of the client application (step 3410). These requests can be synchronous or asynchronous. For asynchronous RequestEvents, the requestResponse( ) and requestException( ) methods must be overridden. Refresh( ) is invoked on the ViewController or ApplicationMediator based on the response of the RequestEvent (step 3412) with the process terminating thereafter. Other possible actions based on ViewEvents include, for example, passing control to other ViewControllers or ApplicationMediators. Also, the ViewEvent can even be sent to higher level listeners using the fireViewEvent method of ApplicationMediatorImpl.
E. Create a RequestEvent
RequestEvents contain a major code to determine the Destination of the request and a minor code to determine the type of request. Turning now to
An interface for containing the strings of major and minor codes of RequestEvents is created (step 3500). Major codes determine the Destination but should be based on a grouping of related request types. In this manner, the processing of these requests can be changed as a group. When processing a ViewEvent in an ApplicationMediator, a RequestEvent can be created for requesting data or a transaction from a business logic subsystem that may be outside of the client application. An instance of RequestEvent is created using the appropriate major and minor code (step 3502). The event is sent using fireRequestEvent method of ApplicationMediatorImpl (step 3504) with the process terminating thereafter.
F. Create a Destination
A Destination takes a RequestEvent and sends it to the appropriate location for processing including servers, the hosting client environment, an in memory algorithm, or local devices. Each major code can be mapped to a different Destination. This allows the client application to access multiple servers and change locations of server processing without requiring code changes in the client application.
With reference now to
The Destination should observe the RequestEvent consume variable as an indicator that processing should be canceled. Next, the finalize( ) method is overridden (step 3610) with the process terminating thereafter. If connection to a Destination needs to be cleaned up, that functionality should be located in this method. The TopListener or any other class that starts the application should create Destinations and register them with the Transporter based on the major codes of the RequestEvents the Destination handles.
G. Create a TopListener
A TopListener manages the overall application. The TopListener is the entry point into the hosting client desktop environment, which includes the operating system, a browser, and legacy programs. Typically the class that contains the top frame of the application will also implement the TopListener interface. This class should have a suffix of Top to distinguish it as a TopListener class.
With reference now to
H. Create a PlacementListener
A PlacementListener is used to place an actual component, container or bean (i.e. ViewController.getComponent( )) on a frame or window. With reference now to
The placementEventPerformed method is then implemented (step 3804) with the process terminating thereafter. An ApplicationMediator and a Java Component is passed in to the method. The component should be added to some container managed by the PlacementListener class.
I. Assembling the JTC Program
The JTC pattern for building most client applications is now given. This description is the JTC pattern. A Destination "D" object is created and initialized. A Transporter object "T" is created and initialized. A major code "MC" is defined. "D" is added to "T" as a DestinationListener using major code "mc".
A main program "P" that implements the JTC, PlacementListner and TopListener interfaces is created and it creates top level frames.
An ApplicationMediator "AM" object is created. Transporter "T" is added as a RequestListener. Main program "P" is added as a PlacementListener and a TopListener. ApplicationMediator "AM" is initialized. ApplicationMediator "AM" creates and initializes one or more ViewControllers "VC" and immediately fires a PlacementEvent to start the program visuals.
This is the Java code for the JTC pattern:
public class MyProgram implements JTC, PlacementListener, TopListener { public static void main (String[ ] ) { MyProgram P = new MyProgram( ); P.createFrames ( ); MyDestination D = new MyDestination( ); dest.init( ); MyTransporter T = new MyTransporter ( ); trans.init ( ); String MC = "mc"; T.addDestinationListener(MC, D); MyApplicationMediator AM = AM.addPlacementListener (P); AM.addTopListener (P); AM.addRequestListener (T); AM.init ( ); } }
VI. Subsystem Behavior
A. ViewController Subsystem Runtime Behavior
With reference now to
ViewController 3902 is responsible for communication of information to ViewListeners 3906. ViewController 3902 knows the full semantics of the data model. One communication technique for sending information to ViewListeners 3906 is to fire a ViewEvent 3910 that the listeners can interpret. The specification of the major and minor codes in ViewEvent 3910 directs the listeners as to what action to perform. Additional information in the form of a String or user-defined data object can be specified by the setData method. ViewController 3902 also can provide named methods. Once a ViewEvent 3910 is consumed, it is not forwarded to other listeners. Another communications technique is to use property change events on the data model. Management of data and use of this approach is discussed explicitly in a later section.
The actual implementation of ViewController interface 3902 is performed in the ViewControllerImpl class 3912. A ViewControllerImpl creates a panel 3914 that allows interaction with the user. All AWTEvents 3916 are sent to a user-defined subclass 3918, which extends the ViewControllerImpl 3912. Java provides two built-in mechanisms for managing panels: the Panel class 3920 that is part of the Java AWT and the Jpanel class 3922 that is part of the com.sun.java.swing package. ViewControllerBaseImpl 3924 is a superclass of ViewControllerImpl 3912, which abstracts these different panel mechanisms.
ViewController subsystem 3900 is also responsible for validating data formats. ValidationRules 3926 themselves are not part of the ViewController 3902, but the ViewController 3902 performs this validation between the input and output using the standard AWT methods such as getText and setText. The edit method inputs a transmittable string and outputs it in visible form (e.g., 1234 to $12.34) while the normalize method inputs a string in visible form and converts it to transmittable form (e.g., $12.34 to 1234). A failure in format conversion results in a ValidationRuleException 3928.
For instance, data starts out in a text field (component) in a ViewController (component) that derives from JPanel (container). The value of the text field is retrieved and passed as a String to the validation rule. The result will be a validated and formatted string or an exception. In the former case, the textfield is redisplayed with the new contents AND/OR the data model is updated. In the latter case, some error message is displayed.
With chaining, the results of each validation rule call are passed to the next validation rule. Processing will stop when the first exception is encountered (first exception first return (FEFR) ) or all validation rules have been processed.
Turning next to
The permission keys, resources, and properties are updated when requested (step 4012). Internal AWTEvents are handled (step 4014). Data fields are validated and formatted (step 4016). ViewEvents are issued for semantic interpretation (step 4018). The AWT thread is returned (step 4020). Refresh calls are handled to update the GUI(step 4022). Data is accessed (step 4024). A determination is made as to whether the ViewController is still active (step 4026). If the ViewController is still active, the process returns to step 4010. Otherwise, the process terminates for the ViewControllerImpl.
Additionally, a ViewController may be used to generate alternate views. For example, the application containing the view controller may be located on the server in which a placement listener is used to call a method in the ViewController to generate a presentation of a component in an alternate format, for example to be displayed in an HTML browser or an XML browser. In this example, the ViewController is on the server while the alternate view is displayed on the client. The PlacementListener has one method: placementEventPerformed that takes a PlacementEvent as a parameter. The PlacementEvent contains a major, minor, source ApplicationMediator and Component (from getcomponent( ) of the ViewController). To use the alternate view, and without extending the PlacementEvent definition, it should be noted that to call for the alternate view, the ViewController needs to be accessed. Therefore, the ViewController can be accessed via the Object data; variable in the PlacementEvent.
Alternate views, may include, for example, text for text based terminals or event data for a debug monitoring display. also, any user input from HTML or other view comes back to ApplicationMediators and ViewControllers as refresh data. The ApplicationMediator may either display the next ViewController or have current ViewController redisplay the entered user input.
With reference now to
With reference again to step 4112, if the major code does not indicate the use of HTML as an alternate view, then a determination is made as to whether the major code identifies another alternate view (step 4122). If another alternate view is not indicated by the major code, then the process terminates. Otherwise, an alternate view is created and placed (step 4124) with the process then terminating. The other alternate view may take various forms, such as, for example, XML. Step 4122 may be iterated for a number of different alternate views that may be provided through the ViewController component. In this manner, the architectural pattern of the present invention may be applied for use on a server. This mechanism is used by a PlacementListener to call a method in a ViewController to create an HTML version of an existing screen. The mechanism for creating the HTML view is application dependent/screen dependent in the depicted examples.
An example of how to configure JTC with alternate views on a server is given. The deployment of JTC on the server is under the control of a servlet. Since, as described in this example, HTML is in the client, when a client browser invokes a URL submit, the web server obtains the request and passed control to a servlet. The servlet obtains a key/value pair list of values entered in the HTML client. This list is passed to the ViewController alternate view being displayed. The ViewController iterates over the list and applies its ValidationRules. If a ValidationRuleException is generated, the servlet indicates an error message to the HTML client. If a successful result is obtained, the ViewController will generate a ViewEvent, as mentioned above, causing the alternate view cycle through the ApplicationMediator and PlacementListener to repeat. The primary benefit being that one source code system can be maintained and versioned to produce multiple client channel views.
Turning now to
The creation of a ViewEvent based on an ActionEvent from the Java AWT is shown in FIG. 42. The actionPerformed method detects the type of action and constructs a corresponding ViewEvent. The source of the ActionEvent was a click of the nextButton. This is detected and the ViewEvent ve is created with the self-referential "this" pointer being passed in. The major field is set to NEXT, a predefined type, and the event is fired. ActionPerformed has done its job and returns.
Validation rules either use edit to convert from a transmittable string to the viewable format or use normalize to convert from a viewable format to a transmittable string.
It is possible to build a chain of validation rules.
Two techniques exist for creating the ViewControllerBaseImpl class: by inheritance and by delegation.
B. ApplicationMediator Subsystem Runtime Behavior
Turning now to
A subclass is needed to implement a state machine for correctly ordering operations. Sample operations include which ViewControllers 5006 to allocate or which to make visible, when to fire or re-fire a ViewEvent, when to fire a RequestEvent 5022, and when to fire a TopEvent 5012.
The typical sequence of actions when a ViewEvent is received is to request a PlacementListener 5010 to place another ViewController 5006 on the screen, to request TopListener 5012 to do something with the operating system desktop, and to fire RequestEvents 5022 for fulfillment by a server. Refresh calls are propogated to the ViewControllers 5006 and ApplicationMediators 5008. All JTC objects allocated are returned via the getJTCs method.
Turning next to
The following steps occur when using the queuing approach: create a sleeping thread during initialization, when a ViewEvent arrives place it in a queue 5106 of ViewEvents, notify the sleeping thread and return to the calling ViewEvent thread (typically an AWT Event thread). The run( ) method 5108 wakes up to process the ViewEvent by taking it off the queue. The processViewEvent method is then called. Subclasses override this method to handle the ViewEvent directly.
The second mechanism is to use thread dispatching directly. When a ViewEvent arrives, create and start a thread 5110 passing it the ViewEvent and return to the calling ViewEvent thread. Add the new thread to a list to provide a handle to access it. This new thread invokes the processViewEvent method which subclasses can override to handle the ViewEvent directly.
With reference now to
Thereafter, initApplicationMediator are used to create other ApplicationMediators as necessary (step 5208). Thereafter, the process listens for ViewEvents and RequestEvents (step 5210). A determination is made as to whether a ViewEvent has been received (step 5212). If a ViewEvent has not been received, the process returns to step 5210. Otherwise, a request is made to a PlacementListener to put another ViewController on the screen (step 5214). This step basically results in the display of another ViewController's getComponent( ) on the screen.
Next, the TopListener performs desktop operations as appropriate (step 5216). The ApplicationMediator also fires the appropriate RequestEvent to server (step 5218) Refresh calls are sent to ViewControllers and ApplicationMediators (step 5220). All JTC objects allocated are returned (step 5222) with the process then returning to step 5210.
C. Placement Subsystem Runtime Behavior
With reference now to
The state of a PlacementEvent includes a major code, which is the primary identifier of the PlacementEvent. A minor code serves as the secondary identifier of the PlacementEvent. The PlacementEvent state also includes a source identifying the source object that creates the Event. A java.awt.Component also is present in the state that identifies the component to be placed. The state also contains consume, which identifies whether an PlacementEvent has been consumed. A consumed PlacementEvent will cause the JTC to stop processing the PlacementEvent immediately. Additionally, the PlacementEvent state also may contain other data, which may be, for example, a reference to generic object data that specifies placement information specific to the application.
Each PlacementEvent 5310 contains a placement type (ADD, ADDALL, REMOVE, REMOVEALL, MODIFY, SHOW, DONE, FREEZE, and REPAINT are predefined), a minor code for additional information, the sender of the event, the component, and provisions for additional generic data. Typically an ApplicationMediator 5306 will assign the appropriate major code, find the component using the getComponent method, create PlacementEvent 5310 making itself the sender, and fire the placement event. The PlacementListener 5308 uses placementEventPerformed to process PlacementEvent 5310 based on the placement type and the source of the event.
Details of the steps discussed above are now examined through various examples of Java code. The creation of a PlacementEvent from an ApplicationMediator is shown in FIG. 54. There are three parameters to a PlacementEvent constructor: the object (referenced by "this") creating the event, the component involved, and the major code. In this example, the major code is set to ADD and the component comes from customerDetailsViewController. After the PlacementEvent is created, it is fired by the ApplicationMediator.
The PlacementEvent is processed by a PlacementListener, as shown in FIG. 55. The method placementEventPerformed decides on the appropriate action based on the major code and the source. In this example, the major code is ADD, which is one of the cases in a switch statement. If the source is PreferencesAM, then the PlacementEvent component is centered in panel1, otherwise it is added to panel2.
Turning now to
D. TopListener Runtime Behavior
With reference now to
The TopListener is also used by the JTC application to send events to itself. For example, based on some heuristic, the TopListener may decide to change the Destination from one using sockets to one using URLs. Or, a second destination may be added to perform logging. The permissions also may be altered. The TopListener may use a heuristic to decide to invoke hookJTCs and hookAWTs on the application and start tracing. Thus, in addition to accessing hosting services, the TopListener also allows self alterable JTC actions to occur on the JTC application.
TopEvent 5704 contains a major code, a minor code, the source that created the event, a consumed event that causes the JTC to stop processing it as soon as possible, and a generic data object. There are predefined constants for EXIT, BROWSER, TITLE, STATUS, OS, TRACE, DEBUG, LOG, HOOKAWT, and HOOKJTC. ApplicationMediator 5706 uses addTopListener to pass itself to the TopListener for later callback in the topEventPerformed method.
Details of the steps discussed above are now examined through various examples of Java code. With reference now to
E. RequestEvent Subsystem Runtime Behavior
The RequestEvent subsystem provides a mechanism for sending messages between various components in the architectural pattern of the present invention. This subsystem provides a mechanism to access data and to send data between components, such as an ApplicationMediator, a Transporter, and a Destination. With reference now to
ApplicationMediator 6102 calls fireRequestEvent. A Transporter, which is one example of a RequestListener 6110, is responsible for forwarding all RequestEvents to one or more destinations based on the major code. ApplicationMediator 6102 will be called back in one of two ways: requestResponse to indicate success and passed a RequestEvent that may have new data or requestException to indicate failure and passed a RequestException with the reason for failure.
With reference now to
The creation, firing, and callback of a RequestEvent in an ApplicationMediator is shown in FIG. 62. After the RequestEvent r is created, the major and minor codes are set to "Loans" and "SubmitCustomerInfo" in this example. The event r is fired asynchronously by the ApplicationMediator. This is done inside of a try statement so that any RequestException can be caught and processed appropriately in FIG. 63. Later there will be a callback to the ApplicationMediator by requestResponse to indicate successful processing of the RequestEvent or by requestException to indicate failure processing the RequestEvent in FIG. 64.
With reference now to
F. Transporter Subsystem Runtime Behavior
The Transporter subsystem is used to map and send various RequestEvents to different Destinations. With reference now to
Turning now to
G. Destination Subsystem Runtime Behavior
A Destination subsystem provides a number of different functions, such as, for example, locating a server, creating low level protocols, such as sockets, URLs, RMI, and files for network transport. Additionally, the Destination subsystem provides a mechanism to communicate with different servers, such as EJB, servlets, web servers, application servers, and other legacy systems. Additionally, message formats are provided to turn RequestEvents and data into formats for the target or server. Additionally, the Destination subsystem will finish the job in an appropriate amount of time or cancel the operation in response to a timeout. Additionally, the Destination subsystem also determines how many times a connection should be retried. Additionally, the Destination subsystem caches data until it becomes stale. Additionally, the Destination creates all data model objects used in the JTC client application. Pre-processed and post-processed RequestEvents are also logged along with locating and creating objects for processing requests.
With reference now to
Details of the steps discussed above are now examined through a Java code example. In
Turning next to
VII. Component Details and Applications
A. Use of getJTCs
The architectural pattern of the present invention as all major objects in a JTC application implement the JTC interface. This includes the driver programs that launches the Application or applet. This interface allows referencing of all objects with a consistent Java type. The behavior includes, clear, exit, getJTCs, init, isEnabled, setEnabled, and toString. Interfaces extending JTC are ViewController, ApplicationMediator, and Destination. ViewControllerImpl, ApplicationMediatorImpl, Transporter, and DestinationImpl are classes implementing JTC. Consider a program called "program" that implements all of "significant" the Java and user defined interfaces. A significant interface is an interface in which the "program" is interested in receiving callbacks. The getJTCs method causes each JTC object to return a list of other JTC objects that the JTC object creates. This method may be used by the "program" to iterate over this list and inspect each object's types and add the "program" as a listener to all of the object's significant event listener types.
As a result, the system may be reconfigured through this mechanism. For example, the Transporter may be disabled or a priority Destination may be added using this method. Further, this method provides a mechanism for non-intrusive logging, tracing, debugging, and monitoring. This is particularly significant when a ViewController is encountered. In addition to adding the "program" as a ViewListener, the getComponent method is called to retrieve a java.awt.Component. The java.awt.Component object is at the top of the Java graphics Component hierarchy. The "program" recursively looks at this hiearchy, traverses it, and add the "program" as listeners for all significant Java AWTEvent and JFC events. Using reflection, any Java object that is returned can be inspected and "hooked" for significant interface events. The "program" can do various tasks with these events such as trace, remotely display the events, reroute the client application to a new server, and record user statistics; all non-intrusive to the application in terms of writing additional code to support this capability.
With reference now to
The function is named hookJTCs and it starts out at the root JTC. The Vector jtcs is initialized to null. The method getJTCs is used to find all JTCs of the root. If an exception occurs or no JTCs are found, the function is exited.
Assuming the vector is not empty, each JTC object in the vector is processed in turn. This code illustrates the "program" adding itself as a RequestListener and ViewListener to ApplicationMediators. This code issustrates the "program" adding itself as a ViewListener to ViewControllers Although not shown in the code, other JTC objects, such as a Transporter, might be hooked by the "program". The function hookJTCs is called recursively at this point resulting in the JTC hierarchy being processed in a depth-first then breadth-first fashion.
With reference now to
With reference now to
The process then adds the "program" as a RequestListener (step 7512) with the process then making a recursive call and starting at step 7500.
With reference again to step 7508, if the entry is not an instance of an ApplicationMediator, a determination is made as to whether the instance is that of a ViewController (step 7514). If the object for the entry is an instance of a ViewController, the "program" is added as a ViewListener step 7516. Thereafter, a hookAWTs with the component returned from the ViewController's getComponent method is performed (step 7518). This step is described in more detail below with respect to FIG. 77. The process then makes a recursive call and starts at step 7500.
With reference again to step 7514, if the instance is not a ViewController, then a determination is made as to whether the object for the entry is an instance of a Transporter (step 7520) If the object is an instance of a Transporter, the "program" is added as a RequestListener (step 7522) with the process then making a recursive call and starting at step 7500.
With reference again to step 7520, if the object is not an instance of a Transporter, a determination is made as to whether the object is an instance of a component (step 7524). If the object is an instance of the component, the process performs hookAWTs with the component (step 7526) with the process then proceeding to step 7504. Step 7526 is used to hookAWTs to a component. With reference again to step 7524, if the object is not an instance of a component, the process then returns to step 7506 to select another entry for processing.
With reference again to step 7504, if more entries are not present, then a non-intrusive program, the "program", is run to listen for events and debug, log, trace, and/or simulate (step 7528). The debug, log, trace, and/or simulate functions may be performed using presently available techniques for debugging, logging, tracing, and/or simulating applications.
B. Recursive Processing of a Component Hierarchy
A component hierarchy is a recursive data structure in the sense that, if the component is a container, then it may contain other components, which in turn may contain other components, and so forth. Consider the hierarchy shown in FIG. 76. Component A 7600 is a container that is a list of three other components: A1 7602, A2 7604, and A3 7606. A1 7602 is a container with two components A11 7608 and A12 7610), and A3 7606 is a container with two components (A31 7612 and A32 7614). The components A11 7608, A12 7610, A2 7604, A31 7612, and A32 7614 are not containers. The goal of a "hook" algorithm is to find all the components in the hierarchy and "hook" each "child" component to the "program" component in the sense of adding appropriate listeners for events, while passing through the "parent" container.
Since the component hierarchy is a recursive data structure, a recursive algorithm most easily processes this hierarchy. It starts at the root component, A BT00, and determines if it is a container. It proceeds to process the first component in the container, A1 BT02, using the same algorithm. A1 7602 is also a container, so the algorithm is applied recursively to the component A11 7608. A11 is not a container, so a "hook" to this component (that is, appropriate listeners) is added. Control now returns to the algorithm processing A1 7602. There is another component in the list of A1 7602, namely A12 7610, and it is processed recursively. A12 7610 is not a container, so it adds listeners appropriate for its type. No more components exist in the list of components for A1 7602, so it has now added listeners for all its children. Control returns back to the algorithm processing parent A.
Component A proceeds to the next item in its container, namely A2 7604. A2 7604 is not a container, so it adds listeners appropriate for its type. A now has added all the appropriate listeners for its children, A1 7602 and A2 7604, and all of their descendants. A3 7606 is processed next and, in a manner analogous to A1 7602, it adds listeners for its two children, A31 7608 and A32 7614. Listeners have been added for all of the descendants of A 7600, so the algorithm terminates.
With reference now to
If more components are not present in the list, then the component is hooked (step 7712) with the process and returns.
With reference again to step 7700, if the component is not a container, then the process also proceeds to step 7712. Step 7710 and step 7712 are described in more detail below in FIG. 78.
With reference now to
With reference again to step 7800, if the component is not an instance of a button, a determination is made as to whether the component is an instance of a JButton (step 7804). Button is an object built using the AWT. JButton, is an object built using the Swing library. Swing components typically provide greater platform independence. If the component is an instance of a JButton, then the JButton is added as ActionListener, a ChangeListener, and an ItemListener (step 7806). A ChangeListener listens for events generated by JFC components when their internal state has changed. The event is handled by the method stateChanged.
An ItemListener listens for events generated by Checkbox, CheckboxMenuItem, Choice, and List, all objects that can be part of the user interface. The event is handled by the method itemStateChanged.
With reference again to step 7804, if the component is not an instance of a JButton, a determination is made as to whether the component is an instance of a component (step 7808). If the component is an instance of a component, then the component is added as an ActionListener and a CareListener (step 7810), with the process returning thereafter. A CaretListener listens for events generated by objects that contain text cursor positions (caret) and the caret changes in the position of text. The event is handled by the caretUpdate method.
With reference again to step 7808, if the component is not an instance of a component, a determination is made as to whether the component is an instance of other AWT/Swing/Bean types in Java (step 7812). If the component is an instance of these other types, then the component is added to all event types generated by the component, with the process returning thereafter. If the component is not an instance of these other types, the process then returns.
The getJTCs and getAWTs algorithms are easily extended to other object types and hiearchies by brute force coding of the "instanceof/addListener" tests or by using reflection on the objects to "search for interfaces, search for interface methods, addListener" as reflection supports.
C. Management of Data Objects
User interaction triggers ViewEvents to perform a variety of tasks. These include system tasks (e.g., open, close, cancel, etc.), status tasks (e.g., various messages), navigation tasks (e.g., next, previous, first, last, etc.), data tasks (e.g., add, delete, modify, etc.),assist tasks (e.g., search, find, help, etc.) and live (streaming) tasks (e.g. fast, medium, delay, timer, on, off, high, low, etc.).
Some tasks can be performed locally, but others are sent to a service fullfillment provider (the Destination) in the form of a RequestEvent containing appropriate data. Data is returned, often different than the data sent, and refresh is used to change what the user is viewing.
Details of the steps discussed above are now examined through various examples of Java code. With reference now to
Alternatively, if the results of a RequestEvent contains changed data, the ApplicationMediator can initiate the refresh on to all ApplicationMediators and ViewControllers.
The code in
Although the Destination locates, creates and packages these data types, the ViewController also knows the syntax of the data layout and packaging and the semantics of the data model.
ApplicationMediators and ViewControllers can also bypass the normal JTC ViewEvent notifications when data has changed. For example, refresh can use an implicit data model (i.e. String, Integer), a user defined data model (described above), named methods in the ViewController (less portable) and traditional Java property change event notifications. Further, live data models (i.e. streaming media, asynchronous device input) can also be incorporated easily. It is because JTC uses the data type "Object data;" and because the refresh method uses a data type definition "Object data;" that additional data models, event notifications, data access and data update differences can readily be integrated into a JTC client application with minimal effort and side effects—the GUI parts of the ViewController, ValidationRules, ApplicationMediators, ViewEvents, RequestEvents, TopEvents, PlacementEvents, TopListeners, and PlacementListeners do not have to change. Only small parts of the ViewController and Destinations need modification. This variety of techniques is illustrated next in FIG. 83.
One way for the ViewController 8300 to change data 8302 is implicitly through the ApplicationMediator 8304. The ApplicationMediator will have a named method to get the appropriate field, such as CustomerName as shown. The setData method is called for a ViewEvent 8306 and the ViewEvent is fired. The ApplicationMediator 8304 changes the data through a property change. The other alternative is to change the data explicitly through the ViewController 8300. A put operation on the appropriate field is attached to an instance of the data. This is sent to the data via a ViewEvent. The operation data.put is a property change event.
In general, the developer should keep the data "thin." This means the number of classes to represent data should be kept small and the size should be kept small to facilitate network transfer. For some applications, it is appropriate to use lists for "drill down" or cached data to facilitate disconnected mode.
D. TopListener
With reference now to
If the major code is exit, then the application is exited (step 8414) with the process terminating thereafter. Otherwise, a determination is made as to whether the major code for the TopEvent is MESSAGE (step 8416). If the major code for the TopEvent is message, then the message is displayed for the application (step 8418) with the process terminating thereafter.
If the major code is not a message, then a determination is made as to whether the major code is a TITLE (step 8420). If the major code for the TopEvent is a title, then the title is displayed for the application (step 8422) with the process terminating thereafter. Otherwise, a determination is made as to whether the major code for the TopEvent is to execute (EXEC) (step 8424). If the major code is execute, then the data in the TopEvent specifies an application to be launched (step 8426) with the process terminating thereafter. If none of these major codes are present, the process terminates without taking any action.
E. PlacementListener
With reference now to
Thereafter, the PlacementListener receives the PlacementEvent (step 8510). A determination is made as to whether the major code for the PlacementEvent is ADD (step 8512). If the PlacementEvent is add, then the ViewController's component is added to a visual container and ViewController is repainted (step 8514) with the process terminating thereafter. With reference to (step 8512), if the major code is not add, then a determination is made as to whether the placement code is removed in the PlacementEvent (step 8516). If the PlacementEvent is removed, then the ViewController's component is removed from the visual container and repainted (step 8518) with the process terminating thereafter. Otherwise, the process also terminates.
With reference now to FIGS. 86-F3, flowcharts illustrating processes used in a ViewController are depicted in accordance with a preferred embodiment of the present invention. Turning first to
With reference again to step 8604, if a ViewEvent is not needed, the process also returns.
F. ValidationRule
With reference again to step 8602, if the AWTEvent.source is a component to validate, the process then determines whether the validation level is ValidationRule.FOCUS and the AWTEvent is a focus event (step 8612). If the answer to this determination is yes, then the ValidationRules are applied (step 8614). A determination is made as to whether the application was successful (step 8616). If the application was successful, then a determination is made as to whether a validation level is equal to ValidationRule.COMPONENT and whether the AWTEvent is an input event (step 8618). This determination is made directly from step 8612 if the validation level is not set equal to ValidationRule.FOCUS. The AWTEvent is not a focus event. If the determination is that the validation level is a ValidationRule for a component and the AWTEvent is an input event, then the ValidationRules are applied (step 8620) and a determination is made as to whether the rules were successfully applied (step 8622).
If the rules were successfully applied, then a determination is made as to whether the validation level is equal to ValidationRule.VIEWEVENT (step 8624). If this determination is no, the process then returns to step 8604 as described above. Otherwise a determination is made as to whether a ViewEvent is needed (step 8626). If a ViewEvent is needed, then ValidationRules are applied (step 8628). A determination is made as to whether the ValidationRules were successfully applied (step 8630). If the ValidationRules were successfully applied, the process then proceeds to step 8606 as previously described.
In any of the steps in which a determination is made as to whether a ValidationRule was successful (steps 8616, 8622, and 8630), if the application of the rules was unsuccessful, then an error message is created (step 8632) with the process then returning. Steps 8612 and 8618 describe the various times the ViewController will validate user input. If the setValidationLevel of a VC is set to COMPONENT, then validation is performed on every. input event for a component (i.e. key strokes, so only valid keys are allowed to be inputted). If the validationLevel is FOCUS, then validation is performed when the user hits the Tab key or uses the mouse to move focus out of the current component. If the validationLevel is VIEWEVENT, then validation is performed when a view event needs to be fired. This situation typically occurs when the user hits the "Ok" or "Next" button for further processing. If a view event is not needed in step 8626, the process returns.
With reference again to step 8618, if the determination is such that the validation level is not a ValidationRule for a component and the AWTEvent is not an input event, then the process proceeds to step 8624 as described above.
With reference now to
With reference again to step 8706, if the application of the rules are unsuccessful, then an exception is thrown (step 8708) with the process then returning. With reference again to step 8702, if a determination that more ValidationRules are not present for processing, the process also returns.
G. ViewEvent
With reference now to
Thereafter, a determination is made as to whether the ViewEvent has been consumed (step 8806). If the ViewEvent is not consumed, the process returns to step 8800 to select another ViewListener. Otherwise, the process returns. With reference again to step 8802, if more ViewListeners are not present, the process also returns.
H. Data Refresh
With reference now to
With reference now to
With reference now to
With reference now to
With reference now to
With reference now to
With reference again to step 9404, if the major code or minor code in step 9406 is unknown, the process defaults (step 9410) and terminates thereafter.
With reference now to
With reference again to step 9502, if a RequestEvent is not needed for the event, a determination is then made as to whether a TopEvent is needed (step 9510). If a TopEvent is needed, a TopEvent is created (step 9512) and the TopEvent is fired (step 9514). Thereafter, the process proceeds to step 9508 as described above.
With reference again to step 9510, if a TopEvent is not needed, a determination is then made as to whether a PlacementEvent is needed (step 9516). If a PlacementEvent is needed, then a PlacementEvent is created (step 9518). Thereafer, a ViewController is selected (step 9520). The PlacementEvent is fired using a component from the ViewController (step 9522) with the process then proceeding to step 9508.
With reference again to step 9516, if a PlacementEvent is not needed, then a determination is made as to whether a data refresh is needed (step 9524). If a data refresh is needed, then the data is accessed (step 9526). Thereafter, the refresh method on the ViewController or ApplicationMediator is called. (step 9528) with the process then proceeding to step 9508 as described above. With reference again to step 9524, if a data refresh is not needed, then the process terminates.
With reference now to
If the data is an aggregate (not a singleton), and if the data is not handled, then iterations are performed over the aggregate and refresh is called for each object in the aggregate. For example, refresh(Object dataNotSupportedAggregate) yields refresh (Object dataNotSupportedAggregate(i)) for each i.
When a singleton data type is supported, has been cast, and a new refresh has been called, there are a plurality of actions that can result. These actions include, for example: updating one or more components, containers or beans; updating the reference to the local data model; application of ValidationRules again; and even the firing of a new ViewEvent. Thus, for each refresh in the plurality of refreshes possible from the initial refresh, a plurality of actions can result from the plurality of possible actions.
With reference now to
With reference now to
With reference again to step 9704, if the data is not to be handled as an aggregate, the process then proceeds to step 9712 as described below.
With reference again to step 9702, if the data is a singleton, a determination is made as to whether the data is an instance of a recognized type T (step 9710). Type "T" is any Java data model type that the JTC systems is currently supporting. For example, you may support a type Object data; and a type KeyValue data; Until you then add support for XMLData data, T cannot be of that type. Once the code is added for XMLData type, T can be of that type. If the data is an instance of a recognized type T, then the data is cast into a recognized type T (step 9712). Thereafter, a call refresh for type T is made (step 9714). This call may be, for example, refresh (T data). Thereafter, the local state is updated (step 9716), and the GUI is updated (step 9718) with the process then returning. With reference again to step 9710, if the data is not an instance of a recognized type then an ignore or error is generated (step 9720) with the process then returning.
With reference now to
I. Hierarchical ApplicationMediators
The present invention provides for the use of hierarchical ApplicationMediators for handling events from ViewControllers. In such a system, ApplicationMediators are arranged in a hierarchical fashion in which different ApplicationMediators may handle different types of events or perform different functions. If graphed, the ApplicationMediators would look like the tree in which nodes represent ApplicationMediators. Events would be received by the lowest level ApplicationMediators, those farthest away from the root. One event will percolate up the graph and then the event might cause actions to a group of ApplicationMediators from the set of ApplicationMediators which in turn may results in a set of actions from the plurality of view controllers. Another way to view it, "event" moves up the graph and then come back down in numerous possible paths.
Each node in the graph is an ApplicationMediator. View controllers. The partitioning of the nodes are based on some logical heuristic. On example is the higher the node, the higher semantic level the code has.
With reference now to
The concept here is that when the application starts the top level AM is provided with the highest level listeners. Then, any Ams created as children AMs are initialized with the same listeners as specified by the top level AM. Once the Listeners are created they will wait to be called back via a fireEvent invocation . . . topEventPerformed( ), viewEventPerformed( ), requestEventPerformed( ), placementEventPerformed( ) etc
Next, a second level ApplicationMediator is created (step 9910), and the TopListeners are cloned (step 9912). The RequestListeners are cloned (step 9914), and the PlacementListeners are cloned (step 9916).
Cloning means to create an exact copy, which means that the copy has its own specific reference while a non-cloned copy would have the same reference as the original, which means that if a person has a dollar amount and choose to copy the amount into another object without cloning it then any changes made to the copy will also affect the original, while the original is cloned rather than just copied, any changes to the cloned object will only affect the clone. Therefore, the reason to clone the listeners here is so that children ApplicationMediators do not have the same Vector instance as the parent ApplicationMediators. If the Vector instance was the same, then the children ApplicationMediators and top level ApplicationMediator would always share the same lists of listeners.
Thereafter, the top ApplicationMediator is added as a ViewListener to the second level ApplicationMediator (step 9918). A determination is then made as to whether a ViewController is to be added (step 9920). If a ViewController is not to be added, then a determination is made as to whether additional second level ApplicationMediators are to be added (step 9922). If additional second level ApplicationMediators are to be added, the process then returns to step 9910. Otherwise, a determination as to whether a lower level ApplicationMediator is to be added (step 9924).
If a lower level ApplicationMediator is to be added, then the lower level ApplicatioriMediator is created (step 9926). The TopListeners are cloned (step 9928) and the RequestListeners are cloned (step 9930). Thereafter, the PlacementListeners are cloned (step 9932). Then, the upper level ApplicationMediator is added as the ViewListener (step 9934). The upper level ApplicationMediator is the ApplicationMediator in the level above the one created.
If there are no more lower level ApplicationMediators then the initialization process completes and application is ready to begin. Also, lower level ApplicaitonMediators and ViewControllers may be created at any time while the application is running.
Thereafter, the process returns to step 9920. With reference to step 9920, if a ViewController is to be added, then the ViewController is created (step 9936). Then, the parent level ApplicationMediator is added as the ViewListener (step 9938) with the process then proceeding to step 9922.
A parent level ApplicationMediator is the application mediator that manages several ApplicationMediators and/or ViewControllers. The usage for this is when functions of an application are nested. For example, assume an application has a function to display an interest rate calculator. This calculator has maybe several screens associated with it. Therefore, an CalculatorApplicationMediator is created to manage those screens. Now, assume that this calculator function will be used by two different higher-level processes such as a Auto Loan calculator and a Home Mortgage calculator. So the AutoLoanAM and HomeMortgageAM would be parent AMs for the CalculatorAM. The parent/child APPLICATIONMEDIATOR communication is done through ViewEvents and refresh just like APPLICATIONMEDIATOR to VIEWCONTROLLER communication. In other words, a child ApplicationMediator represents a child or sub-process that can be re-used in many places.
With reference now to
A determination is made as to whether the ApplicationMediator is able to handle the ViewEvent (step 10012). If the ApplicationMediator is able to handle the ViewEvent, the ViewEvent is processed (step 10014). Thereafter, a determination is made as to whether the processing has completed (step 10016). If the processing has completed, the process returns to step 10000. Otherwise, the ViewEvent is refired (step 10018). The parent ApplicationMediator to the current ApplicationMediator receives the ViewEvent (step 10020) with the process then returning to step 10012.
With reference again to step 10012, if the ApplicationMediator is not able to handle the ViewEvent, the process proceeds directly to step 10018 as described above.
J. Virtual Application Mediators
With reference now to
An AWTEvent is generalized with increased semantics first as a ViewEvent, then as a RequestEvent, PlacementEvent and TopEvent.
Numerous heuristics may be employed that can determine how to solve mediation, such as how to encode a RequestEvent, why a RequestEvent and not a TopEvent or ViewController action.
More than one semantic event can be generated for each ViewEvent.
The Application Mediator interface provides default behavior to manage ViewControllers, ApplicationMediators, and to add/fire/remove PlacementListeners, ViewListeners, and a TopListener. The ApplicationMediatorImpl implements methods in the ApplicationMediator and JTC interfaces.
A dispatching state machine is used to manage all of these actions. As indicated by the name, a state machine consists of a finite set of states, a set of possible transitions between states, and, optionally, one or more actions to be performed when a transition is made between two states. State recognition will be based on the object being monitored. For example, for a ViewEvent the state is typically determined by a subset of the source of the event, the major code, the minor code and possibly the value of the data reference. Examples of possible actions are to make an existing ViewController visible, to create/fire a PlacementEvent, to create/fire a RequestEvent, or to create/fire a TopEvent. It is be possible to "hand build" the finite state machine for every ApplicationMediator, but this route is very tedious.
Instead, according to the present invention, the virtual ApplicationMediator builds the finite state machine from a set of transition rules that recognize the current state and if matched, trigger a state transition and associated actions. In general, it is unpractical to build a language within a language. If the encoding of the transition rules included control statements (i.e. if/then/else, while, switch) it is better to implement the ApplicationMediator in the programming language at hand, Java. If the definition of the transition rules are indeed simple, not control structures and the ApplicationMediator has little state except the Vectors of its ApplicationMediators, ViewControllers, Properties, Permissions, and Resources, then encoding becomes simple, flexible, powerful and easy to manage. The resulting benefit is that one set of ApplicationMediator code can be used to implement numerous virtual ApplicationMediators simply by changing the transition rules via the setproperties method.
Turning now to
With reference now to
The process then determines whether more table entries are present for processing (step 10310). If more table entries are not present for processing, the process returns. Otherwise, table entry (i) is used (step 10312). A determination is made as to whether table entry(i) has a major equal to ViewEvent.major and/or entry(i).minor is equal to ViewEvent.minor (step 10314). If the table does not have a major equal to the major for the ViewEvent, the process returns to step 10310 to see if more table entries are present for processing. Otherwise, a determination is made as to whether more action entries are present for entry(i) (step 10316). If additional action entries are not present, the process also returns to step 10310.
With reference again to step 10306, if the ViewEvent is not a minor code set, then the table entries matching source and the major pair for the ViewEvent are located (step 10318) with the process then returning to step 10310.
With reference again to step 10316, if more action entries are present for entry(i), the process then proceeds to FIG. 104 and determines whether action(i) is equal to RE (step 10320). If action(i) equals RE, then a RequestEvent is created with action(i).major, action(i).minor, ViewEvent.data (step 10322). Thereafter, the RequestEvent is fired (step 10324) with the process then returning. With reference again to step 10320, if action(i) does not equal to RE, then a determination is made as to whether action(i) equals TE (step 10326). If action(i) equals TE, then a TopEvent is created with an action(i) major and an action(i) minor (step 10328). Thereafter, the TopEvent is fired (step 10330) with the process then returning.
With reference again to step 10326, if action(i) does not equal TE, then a determination is made as to whether action(i) is equal to PE (step 10332). If action(i) is equal to PE, then a PlacementEvent is created with an action(i) major and an action(i) minor along with a ViewEvent source (step 10334). Thereafter, the PlacementEvent is fired (step 10336) with the process returning. With reference again to step 10332, if action(i) does not equal to PE, then determination is made as to whether action(i) is equal to VIEWCONTROLLER (step 10338). If action(i) is equal is VIEWCONTROLLER, then a refresh data is performed on the source for the ViewEvent (step 10340) with process then returning. With reference again to step 10338, if action(i) does not equal ViewController, then an error has occurred and an error is generated (step 10342) with the process then returning
K. Serialization/Deserialization
When communications take place between the client and the server, it is convenient to "pack" an object into a single entity, send it over the network, and then "unpack" it at the other end. The Serialize packs the object for transmission and the Deserializer unpacks it at the other end.
With reference now to
When an object is serialized, the object is being written to an external source. The size of the data array is first written and then the data is sent to a serializer for serialization. Typically, a serializer will look up the code for the data element, write the code to the stream, and then look up the serializer for the element. If the serializer for the element exists, then the serializer is allowed to write the element. Otherwise, if the element is "externalizable", it is allowed to write itself. In this last case, it is a call to the method writeExternal on the data element. If the element does not have a serializer and is not externalizable, then it is written as a standard object. Such a writing of the element as a standard object is expensive in terms of serialization space and time and should not happen under normal circumstance.
When an object is read, the size of the data array is read. Thereafter, a base serializer class is used to read each data element. The code for the data element is read and looked up to see if a serializer exists for the code. If a serializer exists, then the serializer reads the data elements and creates the object. Otherwise, an instance of the element type is created. If the element is externalizable, the element is allowed to read itself. This may be accomplished through a call to readExternal on the data element. Otherwise, the data element is read into an object.
The default serialization provided by Java writes the class name of the data element then the attribute name and the value for each attribute of the data element. The size benefit provided by the present invention comes from writing a code representing the element type instead of the type name and the attributes that are required to recreate the data objects without writing the names of the attributes. For example, an integer is written as follows: The class name [java.lang.Inter], the attribute name [value java.lang.Number], the attribute value [00 00 00 08] size: 81 bytes. Alternatively enhanced serialization: the code [01], the value [00 00 00 08] size: 11 bytes.
With reference now to
Turning now to
Method 10800 uses the BaseSerializer class, as illustrated in
Using this new serialization mechanism coded in the read/write External methods of BaseDataS method in
In these examples, the serialization process of the present invention is able to reduce the serialization size further by completely removing any full-path class name strings that are typically outputted in the default Java serialization. Of course, depending on the implementation, other infomation may be removed and processed a similar manner to the full-path class name strings.
The number and length of these class name strings can be incur a high amount of overhead for serialization. The only disadvantage is that the actual class names must be provided on both sides of serialization (reader/writer). The class names are hashed and the hash code is stored in the serialization instead of the actual full class name. (This is why the classes need to be listed in the ClassNames.ini file and provided on either side of the client/server that needs serialize/unserialize the data). Another way to reduce this dependency is to automatically send the class names once before any other communication between client/server is done.
The ClassNames.ini file contains a sequence of lines that are either a class name for a user-defined data class or a class name followed by a serializer's class name if the user created their own serializer for that particular data class. If no serializer is provided and the data class is not in the BaseSerializer, then the default Java serializer for the data class is used. The process of reading this file produces a table that contains the class name, a hash code, and a serializer. The flowchart in
Since the read will be buffered, an empty BufferedRead object is declared (step 11102). A FileReader object is created and passed to the constructor for the BufferedRead object (step 11104). Each line of the file is read sequentially (step 11106). A determination is then made as to whether there is additional data in the file (step 11108). If so, control passes to the finalization code (step 11130). Otherwise, the line is trimmed (step 11110), which means all leading and trailing spaces are removed. Next, a determination is made as to whether the line length is 0 or it begins with a # (indicating a comment) (step 11112). If not, the process returns to step 11106 where another line is read. For lines with data, a string tokenizer is created and the first token is read (this is the class name) and the Java method hashcode( ) is applied to the class name to find an associated integer value (step 11114); this integer value is used for hash table processing. StringTokenizer is a built-in Java class that breaks a string into its components, much like a sentence could be broken into separate words. Next, an empty serializer is created (step 11116).
A determination is then made as to whether there is another token (step 11118). If so, then it is fetched (this is a user-defined serializer name) (step 11120) and a serializer is created using this name (step 11122). If this causes an exception, it is ignored (step 11124) and the class name, hash code, and serializer name are added to the table (step 11126). Control returns to step 11106 to read the next line from the file. If an exception occurs at any time while processing the ini file, it is ignored (step 11128). The finalization code closes the file (step 11130); any exception is ignored (step 11132). Then the table is written (step 11134) completing the process of reading the ini file. With reference again to step 11122, if there are no additional tokens in the tokenizer, the process proceeds directly to step 11126 as described above.
L. Permissions
A permission is a capability that a user is allowed to perform. For example, given a user (defined with a user id, password, location, etc.), this user's capabilities may include running ApplicationMediator 1 and 2, but not 3. Similarly, the same user may be allowed to operate ViewController 1 and 2 in ApplicationMediator 1, but not ViewController 3. Similarly, the same user may be allowed to use all of the GUI components in ViewController 1 in ApplicationMediator 1, except the "next" button, which is disabled.
A permission is the encoding of the above functionality. It is defined as part of the enterprise deployment business processes and security model. Enterprise support to maintain storage of permission data is required for JTC permissions to operate.
For example, using the above description, [Joshua: "AM1=yes AM2=yes AM3=no"] would be defined before deployment and stored in a database and later to be sent to the client. The client program knows that, while the current user is Joshua, AM3 cannot be started.
For another example, [Jacob: "AM1: VC1=yes VC2=yes VC3=no"] would be defined before deployment and stored in a database and later to be sent to the client. Now the client program knows that, while the current user is Jacob and running AM1, Jacob cannot use VC3.
For example, [John:"AM1.VC1: customerlist=yes ok=yes previous=yes namefiled=yes next=no"] would be defined before deployment and stored in a database and to be sent to the client. Now the client program knows that, while the current user is John and running AM1, and in VC1, the customerlist, ok button, previous button, and namefield are enabled while the next button is disabled. The JTC ApplicationMediators and ViewControllers alter their internal state when setPermissions method is called. They do not hard code user permission information. They do check a system specific user session and compare it to their permission state to determine what actions to alter for ViewEvents, PlacementEvents, etc.
Likewise, possibly at build time, the ApplicationMediators and ViewControllers, when called with getPermissions, will return the sets of "keys" that they will react to at runtime. The actual value of the keys (for example, "yes" above) is implementation and business specific.
With respect to permissions, user will typically login to an Application. Login validation is typically provided by external services. The user may have a role based on various attributes, such as user ID, password, location, or time. After logging in, the user will execute the Application as defined by the role. Sometimes, functions provided by another role not accessible by the current user may be required. For example, a cashier may need to void a transaction, requiring the manager to issue an override. For another example, a salesperson may need a branch banking loan officer to approve a loan. In such a case, a new user will login to supplement or replace the current user. The new user can execute the Application according to the new role. In such a case, more functionality may be enabled. Thereafter, the new user will logout. The architectural pattern of the present invention provides a key/value pair of permissions model to support such roles. In such a case, ApplicationMediators may enable and disable ViewControllers while ViewControllers enable and disable GUI parts. In such a case, an ApplicationMediator will return a list of "keys" that represent alterable items. These are usually ViewControllers. New ViewControllers will return a list of "keys" that represent alterable items. These are usually GUI related components, containers and beans. A user management system may create a GUI tool to map role definitions to the ApplicationMediator and ViewController permission keys (i.e. IBM's On Demand Server). In such a case, for example, for each key, a well defined value is stored that defines the alterable item. These keys/value mapping are stored in a database. In setting permissions, if a login is successful, the login and service provider will provide the key/value mappings. For example, ApplicationMediators will be passed the key/value mappings. In turn, the ApplicationMediators will pass them to the ViewControllers associated with the ApplicationMediators.
The persmission information is almost always retrieved or changed via a change in user login (security). A JTC application may choose to create a simple list of the user login sessions. Each session may contain permissions for the user as well as properties, references to ApplicationMediators and references to ViewControllers. A policy of a single current user, two current users or multiple current users may be implemented. In all cases, the ApplicationMediators and ViewControllers do not know why properties are being set, they are just set because top level ApplicationMediator receives the properties data from the server or the login session list and calls the setPermissions method.
With reference now to
With reference now to
With reference to step 11402, if more ViewControllers are not present for processing, then the names of the ViewControllers are added to the list formed for each ViewController (step 11406). Next, a list of keys are returned (step 11408) with the process terminating thereafter.
With reference now to
With reference now to
When the user is logged in, program permissions are obtained from the database (step 11604). Thereafter, the program permissions are set (step 11606) with the process then terminating.
With reference now to
With reference now to
With reference to
VIII. Example Patterns
With reference now to
Turning next to
A JTC program and its elements (i.e. Transporters, Destinations, ApplicationMediators, ViewControllers, components/containers, beans and the main program) all implement the JTC interface. If a reference to the main program is available, a call may be made to getJTCs and a list of all the objects that main allocates that implement the JTC interface are returned. This mechanism is independent of the AWTEvent, ViewEvent, RequestEvent paths.
Iteration can be performed over this list and a determination can be made what the object types with the type of the object, the type of listeners it supported by the objects can be identified. Therefore, a process can be added to objects as a listener as long as the callback method is supported. This can be done for any object type. This normally includes JTC objects and AWT (includes AWT and JFC) objects.
For any object, numerous events may be generated. These events are associated with an interface. If an object is added as a listener to the object for these events, the object must implement the numerous methods associated with the numerous interfaces to support the numerous events from the various types of objects.
After the event arrives, numerous actions may result ranging from logging, to tracing, to connecting to a network and sending them out of the box, to generating further events. A tracing program can in fact be a JTC program and it can be hooked (traced) while it is tracing another JTC program. A graph-tree of programs may be built where the root is the top level program and the root listens to its children and so forth, until the leaves are reached and they are just running JTC programs.
Although events such as AWTEvent, ViewEvent, RequestEvent, and TopEvent, still occur anywhere in the graph, they do not cause the hooking via getJTCs/getAWTs to start. This is done primarily when the program is launched. It could be initiated in the event path. Alternatively, the TopEvent may cause the hooking to start. For example, the user hits "help" in a ViewController that causes a ViewEvent to a RequestEvent to launch a request for help and it also sends a TopEvent to trace the program and send the events to a call center over the network.
With reference next to
Thus, the present invention provides an architectural pattern that may be used to create Internet friendly Java applications, which are small, fast, and flexible. Additionally, through the architectural pattern of the present invention, the object reuse on a client may be between 50 to 100 percent. Additionally, the architectural pattern and methodology of the present invention reduces the time needed to develop an application. By the separation of the functions and processes as described above, a client application may be designed, implemented, and tested as parallel tasks in the client application. By the separation of the functions and processes as described above, a client application may be designed, implemented, and tested in parallel with the server application. Through the present invention, lock-step designing and testing may be eliminated. The addition of new network protocols, new servers and new data models are straight forward and easily performed. Also, changing the graphical user interface to change the look and feel of an application also is easily performed through the compartmentalization and segregation of duties and functions set out in the architectural pattern of the present invention.
It is important to note that while the present invention has been described in the context of a fully functioning data processing system, those of ordinary skill in the art will appreciate that the processes of the present invention are capable of being distributed in the form of a computer readable medium of instructions and a variety of forms and that the present invention applies equally regardless of the particular type of signal bearing media actually used to carry out the distribution. Examples of computer readable media include recordable-type media such a floppy disc, a hard disk drive, a RAM, and CD-ROMs and transmission-type media such as digital and analog communications links.
The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. For example, although the depicted architectural pattern is illustrated in a Java programming environment, the architectural pattern of the present invention may be applied to other types of programming environments. For example, VisualBasic, C++ and Smalltalk are other programming environments in which the processes of the present invention may be applied. In addition, the description of the classes along with the variables, constructors, and methods are provided for purposes of illustration only. Classes, variables, constructors, and methods may vary depending on the particular implementation. Illustration of these classes, variables, constructors are for illustrative purposes and not intended to limit the architectural pattern of the present invention. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
|Cited Patent
|Filing date
|Publication date
|Jun 17, 1985
|Mar 10, 1987
|International Business Machines Corporation
|Flexible data transmission for message based protocols
|May 16, 1986
|Mar 28, 1989
|American Telephone And Telegraph Company
|Security file system for a portable data carrier
|Sep 24, 1991
|Aug 3, 1993
|Ceridian Corporation
|Open systems software backplane architecture for federated execution of independent application programs
|May 10, 1991
|May 31, 1994
|Siemens Corporate Research, Inc.
|Computer method for identifying a misclassified software object in a cluster of internally similar software objects
|Jun 2, 1992
|May 31, 1994
|Fujitsu Limited
|Message-based data processing system that provides checking for access to server space
|Sep 27, 1993
|Nov 29, 1994
|Wang Laboratories, Inc.
|Data processor that customizes program behavior by using a resource retrieval capability
|Oct 6, 1992
|Mar 7, 1995
|International Business Machines Corporation
|Method and system for object management across process boundries in a data processing system
|Jun 29, 1993
|Apr 18, 1995
|Digital Equipment Corporation
|Memory analysis system for dynamically displaying memory allocation and de-allocation events associated with an application program
|Mar 5, 1992
|Apr 18, 1995
|International Business Machines Corporation
|Link pane class and application framework
|Jun 4, 1993
|Aug 1, 1995
|Siemens Corporate Research, Inc.
|Method for adapting a similarity function for identifying misclassified software objects
|Mar 27, 1995
|Sep 24, 1996
|Agency Of Industrial Science & Technology
|Dynamic object management method in object oriented language
|Feb 23, 1995
|Oct 15, 1996
|Powersoft Corporation
|Method for forming a reusable and modifiable database interface object
|May 25, 1995
|May 27, 1997
|Wang Laboratories, Inc.
|Data integration by object management
|Jun 7, 1995
|Oct 7, 1997
|Sony Corporation
|Window system preventing overlap of multiple always-visible windows
|May 23, 1994
|Dec 30, 1997
|Wright Strategies, Inc.
|System and method for completing an electronic form
|Dec 23, 1994
|Jan 20, 1998
|Hitachi, Ltd.
|Object extending method
|Jun 29, 1995
|Jan 27, 1998
|Object Technology Licensing Corporation
|System for processing user events with input device entity associated with event producer which further links communication from event consumer to the event producer
|Oct 13, 1995
|Mar 3, 1998
|Borland International, Inc.
|Development system with a property-method-event programming model for developing context-free reusable software components
|May 22, 1996
|May 12, 1998
|Powersoft Corporation
|Buffered database table interface object system
|Dec 6, 1990
|May 26, 1998
|Prime Arithmetics, Inc.
|Method and apparatus for the generation and manipulation of data structures
|Feb 13, 1997
|Jun 2, 1998
|International Business Machines Corporation
|System and method for enabling before/after method processing in an object oriented system
|Oct 18, 1994
|Jun 9, 1998
|Window manager suitable for multiple window workstations
|Dec 16, 1996
|Jul 28, 1998
|Borland International, Inc.
|Database development system with methods for java-string reference lookups of column names
|Sep 4, 1996
|Sep 1, 1998
|Microsoft Corporation
|Method and system for in-place interaction with contained objects
|Sep 13, 1995
|Sep 8, 1998
|Nec Corporation
|Method of and apparatus for debugging multitask programs
|Dec 18, 1996
|Sep 22, 1998
|Chrysler Corporation
|Software redevelopment system
|Dec 13, 1994
|Oct 6, 1998
|Microsoft Corporation
|Method and apparatus for docking re-sizeable interface boxes
|Jan 19, 1996
|Oct 13, 1998
|Object Technology Licensing Corp.
|Object oriented programming based global registry system, method, and article of manufacture
|Feb 18, 1997
|Nov 10, 1998
|Wall Data Incorporated
|Method for preserving and reusing software objects associated with web pages
|May 10, 1996
|Nov 17, 1998
|Apple Computer, Inc.
|System and method for collecting and dispatching selected events in a computer application program
|Jul 2, 1996
|Apr 6, 1999
|Sun Microsystems, Inc.
|Field objects and a method for developing a graphical user interface containing the field objects
|Jan 22, 1997
|Apr 6, 1999
|Novell, Inc.
|Method for managing globally distributed software components
|Oct 17, 1997
|Jul 20, 1999
|International Business Machines Corporation
|Providing multiple views in a model-view-controller architecture
|Jun 7, 1995
|Oct 26, 1999
|Object Technology Licensing Corporation
|Oriented view system having a common window manager for defining application window areas in a screen buffer and application specific view objects for writing into the screen buffer
|Aug 29, 1997
|Oct 26, 1999
|International Business Machines Corporation
|Method and apparatus for class version naming and mapping
|Sep 10, 1997
|Nov 9, 1999
|Trend Micro Incorporated
|Computer network malicious code scanner
|Dec 22, 1997
|Dec 14, 1999
|International Business Machines Corporation
|Method and system for translating goto-oriented procedural languages into goto-free object oriented languages
|Sep 30, 1997
|Dec 14, 1999
|International Business Machines Corporation
|Systems, methods and computer programs products for storing a new version of an Envy Library file in a teamconnection object oriented programming environment
|Jun 11, 1998
|Feb 8, 2000
|Sun Microsystems, Inc.
|Framework for binding data viewers/data manipulation with one to many objects through introspection
|Aug 1, 1997
|Feb 15, 2000
|International Business Machines Corporation
|Determining how changes to underlying data affect cached objects
|Oct 4, 1996
|Feb 22, 2000
|Canon Information Systems, Inc.
|System for generating a custom formatted hypertext document by using a personal profile to retrieve hierarchical documents
|Feb 2, 1998
|Mar 7, 2000
|International Business Machines Corporation
|Object management system for digital libraries
|Jan 27, 1997
|Apr 25, 2000
|International Business Machines Corporation
|Data processing system and method for simulating compound objects
|Nov 20, 1996
|Apr 25, 2000
|Interntional Business Machines Corporation
|Data processing system and method for controlling a view of a realistic object in a display device
|Nov 19, 1997
|May 16, 2000
|International Business Machines Corporation
|Object oriented apparatus and method for providing a graphical user interface for host-based software applications
|Nov 17, 1997
|Jul 4, 2000
|International Business Machines Corporation
|Data system processing and method for creating application extension
|Dec 7, 1998
|Jul 18, 2000
|Microsoft Corporation
|Dynamically updating themes for an operating system shell
|Oct 28, 1998
|Aug 22, 2000
|Georgia Tech Research Corporation
|Adaptive data security system and method
|Oct 2, 1996
|Aug 29, 2000
|Sybase, Inc.
|Development system providing methods for managing different versions of objects with a meta model
|Dec 18, 1997
|Sep 5, 2000
|Nortel Networks Limited
|Dynamic and generic process automation system
|Apr 30, 1998
|Oct 17, 2000
|International Business Machines Corporation
|Programmable hardware event monitoring method
|May 28, 1998
|Nov 14, 2000
|Johnson Controls Technology Company
|Data structure for scheduled execution of commands in a facilities management control system
|May 5, 1997
|Dec 26, 2000
|Intel Corporation
|Method and apparatus for forms data validation and processing control
|Apr 1, 1998
|Jan 2, 2001
|Microsoft Corporation
|Global viewer scrolling system
|Apr 1, 1997
|Jan 16, 2001
|Sun Microsystems, Inc.
|Framework and method for interfacing a GUI, container with a GUI component
|Aug 20, 1998
|Jan 23, 2001
|International Business Machines Corporation
|Browser hierarchical contextual information for web pages
|Apr 7, 1997
|Jan 30, 2001
|International Business Machines Corporation
|Universal object request broker encapsulater
|Nov 30, 1998
|Feb 6, 2001
|Gte Laboratories Incorporated
|Parallel rule-based processing of forms
|Oct 15, 1997
|Feb 6, 2001
|Imagination Software
|Process and architecture for use on stand-alone machine and in distributed computer architecture for client server and/or intranet and/or internet operating environments
|Aug 28, 1998
|Feb 6, 2001
|Adobe Systems, Inc.
|Secured document access control using recipient lists
|Aug 19, 1998
|Mar 13, 2001
|International Business Machines Corporation
|Method and a mechanism for synchronized updating of interoperating software
|Jun 19, 1998
|Mar 27, 2001
|International Business Machines Corporation
|User-interactive data entry display system with entry fields having distinctive and changeable autocomplete
|Jun 11, 1998
|Mar 27, 2001
|Sun Microsystems, Inc.
|Supporters providing extensible classes without recoding for object-oriented applications
|Oct 19, 1998
|Apr 3, 2001
|Fujitsu Limited
|Apparatus for constructing and operating interactive software
|Oct 8, 1997
|May 22, 2001
|Caere Corporation
|Computer-based document management system
|Apr 1, 1998
|Jun 19, 2001
|Microsoft Corporation
|Directional navigation system in layout managers
|Nov 9, 1999
|Aug 7, 2001
|Trend Micro, Inc.
|Computer network malicious code scanner method and apparatus
|Dec 14, 1998
|Aug 14, 2001
|Sony Corporation
|Interchangeable pick handler for zooming graphical user interface
|Dec 14, 1998
|Aug 14, 2001
|Sony Corporation
|Polymorphic event handling for zooming graphical user interface
|Nov 18, 1997
|Sep 18, 2001
|Honeywell International Inc.
|Object state change and history management mechanism
|Dec 22, 1998
|Sep 25, 2001
|Unisys Corporation
|Method and apparatus for prioritizing delivery of data transfer requests
|Mar 15, 2001
|Oct 23, 2001
|Pitney Bowes Inc.
|Customizable user interface for a mailing apparatus
|Nov 6, 1997
|Dec 11, 2001
|Iready Corporation
|Hardware accelerator for an object-oriented programming language
|Jan 6, 1999
|Jan 1, 2002
|International Business Machines Corporation
|Apparatus and method for user indication of model state in a model view controller
|Sep 11, 2000
|Mar 12, 2002
|Fina Research, S.A.
|Process for producing polyolefins
|Sep 29, 1998
|Mar 26, 2002
|Rockwell Software Inc.
|Method and apparatus for displaying mechanical emulation with graphical objects in an object oriented computing environment
|May 19, 1999
|Jul 23, 2002
|International Business Machines Corporation
|Apparatus and method for synchronizing software between computers
|Jan 21, 1999
|Aug 20, 2002
|Ricoh Company, Ltd.
|Object-oriented communication system with support for multiple remote machine types
|Aug 17, 1998
|Aug 27, 2002
|Microsoft Corporation
|Environment extensibility and automatic services for component applications using contexts, policies and activators
|Mar 29, 1999
|Aug 27, 2002
|International Business Machines Corporation
|System, method, and program for checking dependencies of installed software components during installation or uninstallation of software
|Oct 29, 1999
|Sep 24, 2002
|Lucent Technologies Inc.
|Method and apparatus for target application program supervision
|Dec 29, 1998
|Oct 22, 2002
|International Business Machines Corporation
|Infocenter user interface for applets and components
|Sep 16, 1999
|Dec 10, 2002
|Microsoft Corporation
|Method and system for downloading updates for software installation
|Nov 13, 1997
|Mar 11, 2003
|Computer Associates Think, Inc.
|Method and system for event notification between software application program objects
|Dec 10, 1998
|Apr 29, 2003
|International Business Machines Corporation
|Method and apparatus for generating dips for use with Java beans
|Apr 2, 1999
|Apr 29, 2003
|Microsoft Corporation
|Method and system for providing an event system infrastructure
|May 25, 1999
|May 6, 2003
|Oracle Corporation
|Extending the attributes of an application generated using a fourth generation programming tool
|Mar 25, 1999
|Jul 8, 2003
|International Business Machines Corporation
|Window scroll-bar
|Sep 24, 1998
|Aug 26, 2003
|Worldcom, Inc.
|Integrated customer web station for web based call management
|Sep 24, 1998
|Sep 2, 2003
|Worldcom, Inc.
|Integrated customer interface for web based data management
|Oct 25, 2001
|Aug 15, 2002
|Satoshi Umezu
|GUI processing system for performing an operation of an application which controls testing equipment
|Boone, "Harvesting Design for an Application Framework", Proceedings of the 1996 Conference of the Centre for Advanced Studies on Collaborative Research, Nov. 1996, pp. 1-9.
|Bryant et al., "Automatic Parallelization of Object-Oriented Programming Languages Using Tuple Space", ACM pp. 89-96, 1995.
|Grundy et al., "Support for Constructing Environments with Multiple View", 1996, ACM, pp. 212-216.
|Hadjerrouit, "A Constructivist Approach to Object-Oriented Design and Programming", ITICSE ACM, pp. 171-174, Feb. 1999.
|IBM TDB, "Sequencing Event Handlers in Java", vol. 24, No. 423, Jul. 1999.
|Jarvinen et al., "Object-Oriented Specification of Reactive Systems", IEEE, pp. 63-71, 1990.
|Lemay et al., "Laura Lemay's Web Workshop JavaScript", Sams.net, 1996, pp. 132-137.
|McDonald et al., "Painting Multiple View of Complex Objects", 1990, ACM, 245-247.
|Schuckmann et al., "Designing Object-Oriented Synchronous Groupware with COAST", Proceedings of the 1996 ACM Conference on Computer Supported Cooperative Work, Nov. 1996, pp. 30-38.
|Sullivan et al., "Reconciling Environment Integration and Software Evolution", ACM Transactions on Software Engineering and Methodology, vol. 1, No. 3, Jul. 1992, pp. 229-268.
|Vanhelsuwe, "Mastering JavaBeans", Sybex, 1997, chapter 3.
|Weber, "Advanced JFC", QUE, 1998, chapter 24.
|Zukowski, J., hereinafter Zukowski, "Mastering Java 2", Sybex, 1998, chapter 14, and 22.*
|Citing Patent
|Filing date
|Publication date
|Jan 9, 2002
|Dec 13, 2005
|International Business Machines Corporation
|Method, system, and product for storage of attribute data in an object oriented environment
|Apr 20, 2001
|May 23, 2006
|Borland Software Corporation
|Distributed computing component system with diagrammatic graphical representation of code with separate delineated display area by type
|Oct 29, 1999
|Feb 20, 2007
|International Business Machines Corporation
|Selecting screens in a GUI using events generated by a set of view controllers
|Jul 17, 2002
|Jun 12, 2007
|The Mathworks, Inc.
|Generated code from graphical user interface
|May 31, 2001
|May 20, 2008
|Oracle International Corporation
|Method and mechanism for using a meta-language to define and analyze traces
|Dec 30, 2003
|Jan 6, 2009
|Sap Ag
|Filtered unified logging service
|Jul 29, 2002
|Mar 31, 2009
|Oracle International Corporation
|Method and mechanism for debugging a series of related events within a computer system
|Mar 26, 2004
|Apr 28, 2009
|Sap Ag
|Unified logging service with a log viewer
|Aug 15, 2005
|Jun 2, 2009
|Sap Ag
|Methods of comparing and merging business process configurations
|Oct 19, 2005
|Jun 2, 2009
|Canyonbridge, Inc.
|Method and apparatus for associating messages with data elements
|Dec 30, 2003
|Aug 18, 2009
|Sap Ag
|System and method for monitoring program code
|Jan 12, 2006
|Nov 24, 2009
|Advanced Testing Technologies, Inc.
|Test program set obsolescence mitigation through software and automatic test equipment system processes
|Mar 28, 2006
|Jan 5, 2010
|Microsoft Corporation
|Retroactive verbose logging
|Jul 22, 2005
|Mar 16, 2010
|Adobe Systems Incorporated
|Cascading style sheets (CSS) prototype pointer chaining in object-oriented environment
|Aug 15, 2005
|Apr 20, 2010
|Sap Ag
|Systems and methods for off-line modeling a business application
|Mar 25, 2005
|May 4, 2010
|Red Hat, Inc.
|System, method and medium for component based web user interface frameworks
|Aug 15, 2005
|May 18, 2010
|Sap Ag
|Methods of using an integrated development environment to configure business applications
|Mar 26, 2004
|May 18, 2010
|Sap Ag
|Unified logging service with a logging formatter
|Dec 30, 2003
|May 25, 2010
|Sap Ag
|Notification architecture and method employed within a clustered node configuration
|Dec 30, 2003
|Jun 15, 2010
|Sap Ag
|System and method for configuring tracing and logging functions
|Dec 30, 2003
|Jul 13, 2010
|Sap Ag
|Method and system for employing a hierarchical monitor tree for monitoring system resources in a data processing environment
|Oct 25, 2005
|Sep 7, 2010
|Borland Software Corporation
|Methods and systems for supporting and deploying distributed computing components
|Feb 25, 2005
|Sep 28, 2010
|Mitchell David C
|Method and apparatus for partial updating of client interfaces
|Apr 29, 2005
|Oct 5, 2010
|Sap Ag
|Common trace files
|Dec 30, 2003
|Oct 26, 2010
|Sap Ag
|Deployment of a web service
|Mar 15, 2005
|Nov 16, 2010
|Bungee Labs, Inc.
|Declarative computer programming language method and system
|Jun 28, 2006
|Nov 30, 2010
|Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd.
|System for diagnosing and testing computers
|May 23, 2007
|Feb 22, 2011
|Sap Ag
|User interface independent remote interface data loader
|Mar 3, 2009
|May 10, 2011
|Sap Ag
|Methods of transforming application layer structure as objects
|Dec 30, 2003
|May 10, 2011
|Sap Ag
|Multi-service management architecture employed within a clustered node configuration
|May 26, 2006
|Jun 7, 2011
|Sap Ag
|Methods and systems for data-focused debugging and tracing capabilities
|Aug 16, 2007
|Jul 5, 2011
|Microsoft Corporation
|Error tracing with context history
|May 10, 2005
|Sep 6, 2011
|Novell, Inc.
|Techniques for monitoring application calls
|Apr 30, 2007
|Oct 25, 2011
|The Mathworks, Inc.
|Generated code from graphical user interface
|Nov 10, 2008
|Jan 15, 2013
|Sap Ag
|Method and apparatus for monitoring runtime of persistence applications
|Aug 11, 2006
|Mar 19, 2013
|dyna Trace software GmbH
|Method and system for automated analysis of the performance of remote method invocations in multi-tier applications using bytecode instrumentation
|May 6, 2007
|Jun 11, 2013
|Dynatrace Software Gmbh
|Method and system for adaptive, generic code instrumentation using run-time or load-time generated inheritance information for diagnosis and monitoring application performance and failure
|Nov 23, 2011
|Jul 9, 2013
|Advanced Testing Technologies, Inc.
|Test program set obsolescence mitigation through software and automatic test equipment processes
|Sep 6, 2007
|Jul 30, 2013
|The United States Of America As Represented By The Secretary Of The Navy
|Method of logging stack trace information
|Nov 30, 2009
|Sep 10, 2013
|dynaTrade Software GmbH
|Methods and system for global real-time transaction tracing
|Aug 15, 2005
|Sep 17, 2013
|Sap Ag
|Systems and methods for identifying problems of a business application in a customer support system
|Nov 7, 2005
|Oct 29, 2013
|At&T Intellectual Property Ii, Lp
|Method and system for monitoring a complex IT infrastructure at the service level
|Feb 12, 2008
|Dec 3, 2013
|International Business Machines Corporation
|Method and system for correlating trace data
|Mar 26, 2009
|Mar 4, 2014
|Fujitsu Limited
|Information collection program, information collection apparatus, and information collection method
|Nov 28, 2007
|Jun 24, 2014
|The Mathworks, Inc.
|Exception-based error handling in an array-based language
|Aug 4, 2011
|Feb 24, 2015
|Novell, Inc.
|Techniques for debugging an application
|Apr 2, 2010
|Apr 14, 2015
|International Business Machines Corporation
|Common recording and replaying performance test tool for a client-server environment
|Feb 25, 2013
|Jun 2, 2015
|Dynatrace Corporation
|System and method for extracting instrumentation relevant inheritance relationships for a distributed, inheritance rule based instrumentation system
|Jul 31, 2013
|Jun 9, 2015
|Seiko Epson Corporation
|ePOS printing
|May 15, 2008
|Jul 7, 2015
|Open Invention Network, Llc
|Encapsulation of software support tools
|Nov 24, 2010
|Aug 25, 2015
|iNTERFACEWARE Inc.
|Method and system for displaying selectable autocompletion suggestions and annotations in mapping tool
|Nov 7, 2011
|Sep 1, 2015
|The Mathworks, Inc.
|User configured optimizer
|Dec 17, 2010
|Jan 5, 2016
|Dynatrace Software Gmbh
|Completeness detection of monitored globally distributed synchronous and asynchronous transactions
|Apr 25, 2012
|Mar 1, 2016
|Dynatrace Software Gmbh
|Transaction tracing mechanism of distributed heterogenous transactions having instrumented byte code with constant memory consumption and independent of instrumented method call depth
|Sep 16, 2014
|Jul 19, 2016
|Tencent Technology (Shenzhen) Company Limited
|Method, apparatus and computer storage medium for plug-in management and control
|May 4, 2015
|Nov 1, 2016
|Seiko Epson Corporation
|ePOS printing
|Jul 8, 2014
|Jan 10, 2017
|International Business Machines Corporation
|Reducing resource overhead in verbose trace using recursive object pruning prior to string serialization
|Feb 13, 2015
|Jan 17, 2017
|International Business Machines Corporation
|Reducing resource overhead in verbose trace using recursive object pruning prior to string serialization
|Feb 29, 2016
|Nov 7, 2017
|Dynatrace Software Gmbh
|Method and system for transaction controlled sampling of distributed heterogeneous transactions without source code modifications
|Apr 20, 2001
|Aug 1, 2002
|Dietrich Charisius
|Methods and systems for supporting and deploying distributed computing components
|Jan 9, 2002
|Jul 10, 2003
|International Business Machines Corporation
|Method, system, and product for storage of attribute data in an object oriented environment
|Dec 30, 2003
|Sep 30, 2004
|Frey Gregor K
|System and method for monitoring program code
|Jul 29, 2002
|Jul 21, 2005
|Oracle Corporation
|Method and mechanism for debugging a series of related events within a computer system
|Mar 15, 2005
|Sep 15, 2005
|Canyonbridge, Inc.
|Declarative computer programming language method and system
|Feb 25, 2005
|Sep 15, 2005
|Canyonbridge, Inc.
|Method and apparatus for partial updating of client interfaces
|Mar 26, 2004
|Oct 6, 2005
|Frey Gregor K
|Unified logging service with a log viewer
|Mar 26, 2004
|Oct 6, 2005
|Frey Gregor K
|Unified logging service with a logging formatter
|Oct 25, 2005
|Mar 9, 2006
|Dietrich Charisius
|Methods and systems for supporting and deploying distributed computing components
|Oct 19, 2005
|Apr 27, 2006
|Canyonbridge, Inc.
|Method and apparatus for associating messages with data elements
|Jan 12, 2006
|Jul 13, 2006
|Robert Spinner
|Test program set obsolescence mitigation through software and automatic test equipment system processes
|Nov 4, 2005
|Aug 10, 2006
|Shirish Gadre
|Video processor having scalar and vector components
|Mar 25, 2005
|Sep 28, 2006
|Red Hat, Inc.
|System, method and medium for component based web user interface frameworks
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Methods of optimizing legacy application layer control structure using refactoring
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Systems and methods for off-line modeling a business application
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Methods of using code-based case tools to verify application layer configurations
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Systems and methods for transforming logic entities of a business application into an object-oriented model
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Methods of using an integrated development environment to configure business applications
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Systems and methods for using object-oriented tools to debug business applications
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Systems and methods for identifying problems of a business application in a customer support system
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Methods of exposing business application runtime exceptions at design time
|Aug 15, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Methods of exposing a missing collection of application elements as deprecated
|Apr 22, 2005
|Oct 26, 2006
|Igor Tsyganskiy
|Systems and methods for modeling and manipulating a table-driven business application in an object-oriented environment
|Apr 29, 2005
|Nov 2, 2006
|Sap Aktiengesellschaft
|Common trace files
|May 10, 2005
|Nov 16, 2006
|Novell, Inc.
|Techniques for debugging an application
|Jul 29, 2005
|Dec 7, 2006
|Javaground Usa, Inc.
|Efficient and automatic software application development system for wireless devices
|Jul 29, 2005
|Dec 7, 2006
|Javaground Usa, Inc.
|Integrated software development and porting system for wireless devices
|Jun 1, 2006
|Dec 14, 2006
|Igor Tsyganskiy
|Methods and systems for merging business process configurations
|Jun 1, 2006
|Dec 28, 2006
|Igor Tsyganskiy
|Methods and systems for incrementally exposing business application errors using an integrated display
|Jun 1, 2006
|Dec 28, 2006
|Igor Tsyganskiy
|Methods and systems for applying intelligent filters and identifying life cycle events for data elements during business application debugging
|May 26, 2006
|Dec 28, 2006
|Igor Tsyganskiy
|Methods and systems for data-focused debugging and tracing capabilities
|Aug 22, 2006
|Jan 11, 2007
|Seiko Epson Corporation
|Online support technique to support elimination of problems arising in device
|Jan 23, 2006
|Jul 26, 2007
|Mitchell David C
|Method and apparatus for accessing Web services and URL resources for both primary and shared users over a reverse tunnel mechanism
|Jun 28, 2006
|Sep 20, 2007
|Hon Hai Precision Industry Co., Ltd.
|System for diagnosing and testing computers
|Mar 15, 2006
|Sep 20, 2007
|Clarke James C
|Ensuring a stable application debugging environment via a unique hashcode identifier
|Mar 28, 2006
|Nov 1, 2007
|Microsoft Corporation
|Retroactive verbose logging
|May 6, 2007
|Nov 6, 2008
|Bernd Greifeneder
|Method and System for Adaptive, Generic Code Instrumentation using Run-time or Load-time generated Inheritance Information for Diagnosis and Monitoring Application Performance and Failure
|May 23, 2007
|Nov 27, 2008
|Fabrizio Muscarella
|User Interface Independent Remote Interface Data Loader
|Nov 28, 2007
|Jan 15, 2009
|The Mathworks, Inc.
|Exception-based error handling in an array-based language
|Aug 16, 2007
|Feb 19, 2009
|Microsoft Corporation
|Error tracing with context history
|Mar 3, 2009
|Jul 2, 2009
|Sap Ag
|Methods of transforming application layer structure as objects
|Mar 26, 2009
|Jul 16, 2009
|Fujitsu Limited
|Information collection program, information collection apparatus, and information collection method
|Feb 12, 2008
|Aug 13, 2009
|International Business Machines Corporation
|Method and system for correlating trace data
|Sep 6, 2007
|Dec 3, 2009
|Honeywell International Inc.
|Method of logging stack trace information
|Nov 10, 2008
|May 13, 2010
|Andrea Neufeld
|Method and apparatus for monitoring runtime of persistence applications
|Apr 2, 2010
|Oct 6, 2011
|International Business Machines Corporation
|Common recording and replaying performance test tool for a client-server environment
|Jul 31, 2013
|Feb 20, 2014
|Seiko Epson Corporation
|ePOS Printing
|Sep 16, 2014
|Jan 1, 2015
|Tencent Technology (Shenzhen) Company Limited
|Method, Apparatus And Computer Storage Medium For Plug-In Management And Control
|Feb 13, 2015
|Jan 14, 2016
|International Business Machines Corporation
|Reducing resource overhead in verbose trace using recursive object pruning prior to string serialization
|Jul 8, 2014
|Jan 14, 2016
|International Business Machines Corporation
|Reducing resource overhead in verbose trace using recursive object pruning prior to string serialization
|Jul 6, 2010
|Jul 24, 2012
|Advanced Testing Technologies, Inc.
|Test program set obsolescence mitigation through software and automatic test equipment system processes
|May 31, 2006
|Dec 14, 2006
|Javaground Usa, Inc.
|Efficient software development and porting system and method for wireless devices
|May 31, 2006
|May 24, 2007
|Javaground Usa Inc
|Efficient software development and porting system and method for wireless devices
|U.S. Classification
|715/205, 717/108, 717/127, 717/116, 717/128, 715/764, 715/239
|International Classification
|Cooperative Classification
|European Classification
|Oct 20, 1999
Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BAHRS, PETER C.;FEIGENBAUM, BARRY ALAN;MODH, MANISH MAHESH;REEL/FRAME:010353/0228;SIGNING DATES FROM 19990907 TO 19990920
|Feb 21, 2006
|Certificate of correction
|Sep 8, 2008
|Maintenance fee reminder mailed
|Mar 1, 2009
|Lapse for failure to pay maintenance fees
|Apr 21, 2009
|Expired due to failure to pay maintenance fee
Effective date: 20090301