|Publication number||US6430599 B1|
|Application number||US 09/333,422|
|Publication date||Aug 6, 2002|
|Filing date||Jun 15, 1999|
|Priority date||Jun 15, 1999|
|Also published as||CA2376857A1, EP1192540A1, WO2000077633A1|
|Publication number||09333422, 333422, US 6430599 B1, US 6430599B1, US-B1-6430599, US6430599 B1, US6430599B1|
|Inventors||Mark Baker, Josh Duggan|
|Original Assignee||Sun Microsystems, Inc.|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (13), Non-Patent Citations (6), Referenced by (54), Classifications (17), Legal Events (4)|
|External Links: USPTO, USPTO Assignment, Espacenet|
1. Field of the Invention
The present invention relates to the field of resource-constrained small footprint devices such as handheld computers, personal data assistants (PDAs), cellular phones, etc. More particularly, the present invention comprises a lightweight framework supporting shareable services in small footprint devices.
2. Description of the Related Art
The field of “smart” small footprint devices is growing and changing rapidly. Small footprint devices include handheld computers, personal data assistants (PDAs), cellular phones, global positioning system (GPS) receivers, game consoles, and many more such devices. These devices are becoming more intelligent and interconnected. Technologies such as Jini™ from Sun Microsystems, Inc. and initiatives such as the Open Service Gateway Initiative (OSGI) are expanding the traditional concepts of computer networks to include small footprint devices.
This increased device interconnection has introduced a need for both new types of computing services and new ways to integrate computing services, both inter-device-based and intra-device-based services. A “service” is an entity implemented within or accessible from a device that can be used by a person, an application, or another service. The concept of a service is broad and can be considered at many different scales. For example, services include familiar network-based services such as shared printing, email, telephony, etc. Services also include less familiar examples such as an energy management service which may control the power consumption of devices within a local network, a diagnostic service which allows a device to send information to a service technician when an error occurs, a health-monitoring service which immediately notifies health professionals of an emergency, etc.
Services also include modules or applications located and executable within a local machine or device. For example, local application programs may utilize a calendar service, a contact list service, a bookmark service, etc. In this example, an application program may use these services together to allow a user to select a person from the contact list, record an appointment time for a meeting with the person, and create a bookmark for easy access to the appointment entry.
It is becoming more common today to execute multiple services and applications together in a single small footprint device. However, since memory, processing power, and other resources are typically very limited in small footprint devices, a specialized lightweight software framework is necessary to achieve the desired integration of services and applications. It is also desirable that the framework be flexible and extendable enough to provide support for any types of services and applications for any kind of small footprint device. A further goal may be that the framework be compatible and integrated with off-device services such as services available to devices in a Jini™ network. A lightweight, extendable containment framework for applications/services running on a small footprint device is described herein.
The present invention comprises a system and method to contain and manage program modules in a small footprint device. As used herein, a module is an executable software component. The invention comprises a containment framework for shareable modules. One embodiment of this containment framework is referred to as York 1.1. The containment framework enables module registration, lookup, instance tracking, etc. Modules in the containment framework may be used by other modules as services. The containment framework may be dynamic, allowing modules to be registered and loaded as desired or needed.
Modules may be grouped into parcels and managed as a unit. Parcels may serve several purposes. For example, much of a module's runtime context may be determined by the parcel from which it originates. Also, applications may be managed by parcel, including installation and upgrade procedures. Also, the parcel system enables the support of multiple target development (i.e., development groups may use parcels to develop for different platforms or systems simultaneously without breaking reliance on common libraries).
As described above, a containment framework for a small footprint device should be lightweight. The present containment framework is able to function on a device with very little memory. For example, in one embodiment the containment framework may function on a device with only 300 KB writeable memory and still leave enough memory space for several modules to operate. In addition, the containment framework may be responsive on devices with low processing power, such as small footprint devices with 16 MHz-class chips.
One aspect of the containment framework which aids in achieving its lightweight status is that it is a non-hierarchical framework. Hierarchical containment can be a very useful feature in a framework, providing a standard way to group modules and allow them to discover and use each other's services. However, hierarchical containment is generally expensive to achieve in terms of the resources required to implement it. The present containment framework provides many of the advantages associated with a hierarchical framework, without the usual overhead. Modules may intercept module lookup requests by other modules, thereby allowing them to customize the requesting module's environment.
The containment framework may be based on common standards. For example, in one embodiment, the containment framework may be written in pure Java™ and may be fully compliant with and executed in the PersonalJava™ 3.0 application environment. PersonalJava™ is a Java™ application environment specifically designed for consumer devices for home, office, and mobile use. It comprises the Java™ virtual machine (JVM) and a subset of the Java™ Application Programming Interface (API), including core and optional APIs and class libraries. In addition, the PersonalJava™ API includes specific features required by consumer applications in resource-limited environments. It is noted that the containment framework may also be comprised in hardware ROM or be compiled into native code.
Because the containment framework may be based on common standards, it may be ported easily to different device types and to devices made by different vendors, which greatly reduces time-to-market and development costs. The extendable architecture of the framework may also allow new modules to be introduced into the framework as needed or desired for different devices or services. The architecture may also allow for customizable and scaleable user interfaces. For example, the user interface component of an application may be swapped out as appropriate to the display type for different devices.
As described in more detail below, the containment framework maintains a list of loaded modules, as well as related system data. Modules normally access the module list or the system data only indirectly, e.g., by calling methods of a central framework instance. However, certain modules, referred to as system modules, may have the ability to access or modify the system data themselves. This type of direct data access to core data helps to keep the containment framework lightweight. Since system modules have access to the core system data, any necessary or desired extended functionality beyond the basic module management performed by the central framework instance may be introduced to a system by adding an appropriate system module. Thus, the containment framework is also highly extendable.
A system may comprise a set of core service modules available for other modules to use. These core services may include services such as the calendar, contact list, and bookmark services described in an example above. Together with such core services, the containment framework provides a complete architecture for running an integrated suite of applications and services on a small footprint device. For example, the Personal Applications suite available from Sun Microsystems, Inc. is built around one embodiment of the containment framework. The Personal Applications suite comprises an integrated set of compact, memory-efficient applications, including the Personal Applications Browser, the Personal Applications Email Client, and the Personal Organizer.
Although the system and method of the present invention may be associated with managing modules running on a small footprint device, it is noted that they are not limited to this use. To the contrary, many aspects of the present invention may be useful in systems that do not have such a large resource constraint. On the other hand, embodiments of the containment framework may be designed so that they are easily transferable to environments with an even greater constraint in resources than the small footprint devices described above. For example, an embodiment of the containment framework may run in an EmbeddedJava™ application environment with little or no modification.
Other objects and advantages of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which:
FIG. 1 is a block diagram illustrating the hardware architecture of a typical small footprint device;
FIG. 2 illustrates a typical hierarchy of hardware/software layers involved in a system running applications and services within the containment framework;
FIG. 3 illustrates an exemplary network in which a small footprint device running applications/services in the containment framework is connected to a local service-based network;
FIG. 4 illustrates the discovery process, in which a service provider finds a lookup service;
FIG. 5 illustrates the join process, in which a service provider registers its service with a lookup service;
FIG. 6 illustrates the lookup process, in which a client requests a service from a lookup service;
FIG. 7 illustrates the service invocation process, in which a client invokes a service using a service object received from a lookup service;
FIG. 8 is an abstract block diagram illustrating the basic architecture of the containment framework;
FIGS. 9 and 10 illustrate the use of module request listeners in the containment framework to simulate a hierarchical containment environment;
FIG. 11 illustrates the use of parcels to group modules together;
FIG. 12 is a flowchart diagram illustrating a typical lookup process that the central framework instance may perform when it receives a lookup request for a service module from a client module; and
FIG. 13 is a flowchart diagram illustrating the module release process.
While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and are herein described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.
FIG. 1—Hardware Architecture Block Diagram
FIG. 1 is a block diagram illustrating the hardware architecture of a typical small footprint device. As used herein, a small footprint device is a hardware device comprising computing resources such as a processor and a system memory, but having significantly greater constraints on one or more of these resources than a typical desktop computer has. For example, a small footprint device may have two megabytes of memory or less, whereas a typical desktop system may have 64 megabytes or more. Also a typical small footprint device may have significantly less processing power than a typical desktop computing system, either in terns of processor type, or processor speed, or both. For example, a personal data assistant device may have a 16 MHz processor, whereas a typical desktop system may have a processor speed of 100 MHz or higher. Also, a typical small footprint device may have a display size significantly smaller than the display screen of a desktop computing system. For example, the display screen of a handheld computer is typically small compared to the display screen of a desktop monitor.
It is noted that the specific numbers given are exemplary only and are used for comparison purposes. For example, a personal data assistant having eight megabytes of memory or more may still be a small footprint device, although the device has more memory than the typical figure of two megabytes given above.
Small footprint devices may also have constraints on other resource types compared to typical desktop computing systems, besides the memory, processor, and display size resources described above. For example, a typical small footprint device may not have a hard disk, may not have a network connection, or may have an intermittent network connection, or may have a wireless network connection, etc.
Many small footprint devices are portable and/or are small compared to desktop computers, but are not necessarily so. Also, many small footprint devices are primarily or exclusively battery-operated. Also, small footprint devices may typically have a more limited or narrow range of usage possibilities than a typical desktop computing system. Small footprint devices include, but are not limited to, the following examples: handheld computers, wearable devices (e.g., wristwatch computers), personal data assistants (PDAs), “smart” cellular telephones, set-top boxes, game consoles, global positioning system (GPS) units, electronic textbook devices, etc. Since new classes of consumer devices are rapidly emerging, it is not possible to provide an exhaustive list of small footprint devices. However, the term “small footprint device” is intended to include such devices as may reasonably be included within the spirit and scope of the term as described above.
FIG. 1 illustrates a block diagram of a typical small footprint device. It is noted that the small footprint device may have various different architectures, as desired. The hardware elements not necessary to understand the operation of the present invention have been omitted for simplicity.
As shown in FIG. 1, the small footprint device contains a processor 100. The processor 100 may be any of various types, including an x86 processor, e.g., a Pentium class, a PowerPC processor, as well as other less powerful processors or processors developed specifically for small footprint devices. The processor 100 may have various clock speeds, including clock speeds similar to those found in desktop computer-class processors, as well as lower speeds such as 16 MHz.
Also shown in FIG. 1 the device includes a system memory 102. The system memory 102 may comprise memory of various types including RAM or ROM. A typical small footprint device may have a very small memory storage capacity compared to a typical desktop computer system.
A small footprint device may also comprise one or more input mechanisms. An input mechanism 104 is illustrated in FIG. 1. The input mechanism 104 may be any of various types, as appropriate to a particular device. For example, the input mechanism may be a keypad, mouse, trackball, touch pen, microphone, etc.
A small footprint device may also comprise one or more display mechanisms. A display 106 is illustrated in FIG. 1. However, a small footprint device may not comprise a display, or may comprise another type of output mechanism, such as an audio speaker. The display mechanism 106 may be any of various types, as appropriate to a particular device. The display mechanism for a typical small footprint device, such as a smart cellular phone, may be small compared to the display of a desktop computer system.
FIG. 2—Hardware/Software Hierarchy Diagram
FIG. 2 illustrates a typical hierarchy of hardware/software layers involved in a system running applications and services within the containment framework. The drawing is exemplary, and various layers may be added, combined, or omitted as appropriate for a particular device or implementation.
The base layer shown in FIG. 2 is the device hardware layer 120, which comprises the hardware resources necessary to support a software system, such as a processor and system memory. In one embodiment, the hardware of a small footprint device, such as the small footprint device hardware example illustrated in FIG. 1, implements the hardware layer 120 illustrated in FIG. 2. However, in other embodiments, the hardware layer 120 may be implemented in other types of devices, such a device with even greater resource constraints than a typical small footprint device, such as a smart card.
As shown in FIG. 2, the next layer up from the hardware layer is the operating system layer 122. As is well known in the art, the operating system functions as an interface layer between the device hardware and software running on the device and serves as a manager for low-level tasks such as input/output, memory management, etc. The operating system 122 illustrated in FIG. 2 may be any particular operating system which supports the higher layers shown in FIG. 2. The operating system 122 may be a small and efficient one that is suitable for or written particularly for use in a small footprint device. For example, the operating system 122 may be the Java™OS operating system available from Sun Microsystems, Inc.
In one embodiment, the containment framework is implemented in a Java™ application environment as one or more Java™ classes. As shown in FIG. 2, the Java™ virtual machine layer 124 and Java™ application programming interface (API) class libraries layer 126 are the next layers up from the operating system. These two layers together make up the Java™ application environment, or Java™ platform. Classes implementing the containment framework may be built using the Java™ libraries 126 and compiled into bytecodes. The bytecodes are instructions which execute on the Java™ virtual machine 124, which interacts with the operating system 122 and/or the device hardware 120.
In one embodiment, the containment framework is implemented in the PersonalJava Java™ application environment, which is a Java™ platform designed to be highly scalable, modular, and configurable, while requiring minimal system resources. PersonalJava™ comprises the Java™ virtual machine and a subset of the Java™ API, including core and optional APIs and class libraries. In addition, the PersonalJava™ API includes specific features required by consumer applications in resource-limited environments, such as a specialized version of the Java™ abstract window toolkit (AWT). The PersonalJava™ AWT library is targeted and tuned for consumer product look and feel, providing graphics and windowing features while supporting low-resolution displays and alternate input devices (via an extended event model for mouse- and keyboard-less devices).
Referring again to FIG. 2, the containment framework 128 is shown as the next layer up from the Java™ platform layer. As noted above, the containment framework 128 may also be based on other platforms. As described in detail below, the containment framework 128 manages program modules, e.g. by enabling module registration, lookup, instance tracking, etc. Modules may provide various services. The containment framework 128 enables modules to request other modules, in order to use their services. Applications may be implemented as modules that utilize the services of other modules. The containment framework 128 thus provides a lightweight, extendable service and application framework, enabling applications to coexist and share a modular code base.
This type of extendable architecture enabling multiple program modules to cooperate is an important development for small footprint devices. Small footprint devices have historically been limited to relatively narrow uses. For example, cellular phones were typically used for telephony and little else. However, as various technologies are developed allowing small footprint devices to become “smarter”, having general-purpose processors, larger display screens, etc., it has become desirable to expand the scope of applications used in small footprint devices.
The present containment framework may enable the types of applications and services generally associated with desktop computing environments to work together in a small footprint device, in a manner that desktop computer users are familiar with. As illustrated in FIG. 2 and described above, services and applications 130 running on a small footprint device may be implemented as modules built on the containment framework layer 128. For example, the Personal Applications suite available from Sun Microsystems, Inc. is built using one embodiment of the containment framework 128. The Personal Applications Suite comprises an integrated set of applications such as a browser, an email client, and a personal organizer.
FIG. 2 also illustrates the ability of some embodiments of the containment framework 128 to integrate off-device services 132 with on-device applications/services 130. For example, the containment framework 128 may provide an interface between a small footprint device and a network such as a Jini™ network. A small footprint device system may register its services for use by other devices or clients in a network. The containment framework may also enable services and applications within the small footprint device to look up and use services provided by other network devices. The integration of services of the small footprint device with network services is discussed in more detail below for FIG. 3.
FIGS. 3-7: Exemplary Network Device and Service Federation
FIG. 3 illustrates an exemplary network in which a small footprint device running applications/services in the containment framework is connected to a local service-based network. In the example shown, a smart cellular phone 134 utilizing the containment framework 144 is connected to the network. Also shown attached to the network are a printer 130 and an internet-enabled television 132. In this example, it is assumed that the printer 130 and television 132 devices are operable to export services to a network and possibly use the services of other devices on the network. For example, the printer may export its print service 138, and the internet television may look up the print service and use it to print a web page. To facilitate the federation of devices and services in this manner, a lookup service 136 is located on the network. The lookup service 136 may reside on a separate device such as a network server.
The federation of devices and services may be implemented in various ways. For example, Jini™ technology, available from Sun Microsystems, Inc., comprises components and a programming model which enables the type of distributed system illustrated in FIG. 3. In one embodiment, the local network shown in FIG. 3 may be a Jini™ network, and the printer 130 and internet television 132 may be Jini™-enabled devices. Each device is operable to find the Jini™ network lookup service and register the services it offers with the lookup service. The lookup service maps interfaces indicating the functionality provided by a service to sets of objects that implement the service.
To add its services to a service federation, a device or other service provider may first locate an appropriate lookup service by using a “discovery” protocol. FIG. 4 illustrates the discovery process. As shown, the service provider 164, e.g. the printer 130 shown in FIG. 3, may broadcast a request on the local network for any lookup services to identify themselves.
Once the service provider 164 has located the lookup service 160, the service provider 164 may register its service with the lookup service 160 by using a “join” protocol. FIG. 5 illustrates the join process. The service provider 164 may create a service object which clients can use to invoke the service. As illustrated in FIG. 5, the service object for the provided services may then be loaded into the lookup service 160, along with service attributes or descriptors containing information about the types or names of services provided. For example, in a Jini™ network, the printer 130 shown in FIG. 3 may create a service object which comprises a Java™ programming interface for the print service 138. The printer 130 may then call a “register” method of the lookup service 136, passing this service object, along with attributes which specify that the service 138 being registered is a print service, the printing resolution, the possible paper sizes, etc.
Once the service provider 164 has joined its services with the lookup service 160, other network clients may request and use the services. The process of requesting a service, called lookup, is illustrated in FIG. 6. After discovering the lookup service, a client 162 may request a service from the lookup service 160 using a description of the requested service. The lookup service 160 attempts to match the description given by the requestor to the services that have joined the lookup service. The lookup service 160 may use the service attributes sent by the service provider 164 during the join process to perform this matching. If a match is found, the lookup service 160 provides the appropriate service object to the client 162. For example, a Java™ interface for the requested service may be provided to the client 162.
Once a client 162 has received a service object from the lookup service, the client may invoke the service. FIG. 7 illustrates the process of service invocation. When a service is invoked, the client 162 and the service provider 164 may communicate directly with each other. Any of various interaction protocols may be used for this communication. For example, the protocol used may be Java™ Remote Method Invocation (RMI), CORBA, DCOM, etc. The service object that a client receives from the lookup service may call back to code located at the service provider, e.g. by calling an RMI method, or it may execute locally to provide the requested service, or it may use a combination of these approaches.
As shown in FIG. 3, the lookup service 136 for a local network may also act as a gateway to an outside network such as the Internet 154. The service-based distributed computing model may thus be extended to include clients and services located outside the local network. For example, the technology being developed for the Open Service Gateway Initiative (OSGI) may be leveraged to implement this type of distributed computing system.
This type of service sharing between and across different networks and the Internet may enable new types of applications to be developed. For example, merchants may use Internet services to record data about specific consumers, and advertising service providers may use this data to push context-specific ads onto consumer devices, depending on which local network the device is connected to, etc. For example, a customer may enter a shopping mall and connect a personal data assistant (PDA) into a local network for the shopping mall, via a wireless connection. An Internet-based consumer data service may be joined with the lookup service for the shopping mall network and may provide information about the specific consumer who has just plugged into the mall network. Services running in the shopping mall network may then use this data together with other factors such as the customer's current location within the mall, the time of day, etc., in order to generate personalized ads and push them onto the customer's PDA.
Many other examples of services based on the network of FIG. 3 are possible. For example: network-enabled consumer devices within a home may utilize a service provided by a power company, via the Internet, which manages power consumption within the home; security service providers may monitor a home or specific devices via network services and may notify the owner immediately when property is broken into; health service providers may remotely monitor a patient's state by communicating with medical instruments; etc.
In the examples listed above, an assumption is made that devices are able to transparently connect to a network, integrate network services with device-resident services, and export device-resident services for use by network clients. The containment framework described herein may provide the necessary interface to integrate services and applications of small footprint devices such as personal data assistants, handheld computers, smart cellular phones, etc. with a network service federation.
As shown in FIG. 3 and described in more detail below, the containment framework 144 has its own type of lookup service 146. The lookup service 146 within the containment framework 144 may operate similarly to the local network lookup service described above, utilizing discovery, join, lookup, and service invocation processes. For example, the personal organizer application 152 may utilize various services such as a calendar service, a contact list service, a bookmark service, etc. (not shown). The personal organizer application 152 may obtain a reference for communicating with these services via the containment framework lookup service 146.
The containment framework 144 may integrate its own lookup service 146 with an off-device lookup service such as the local network lookup service 136 shown in FIG. 3. In this way, off-device services such as the print service 138 and the web service 140 may become available to the applications/services 148, 150, and 152 of the containment framework, and vice versa. For example, the personal organizer application 152 may request a print service from the containment framework lookup service 146. The containment framework lookup service 146 may first search for an on-device print service. If one is not found, the containment framework lookup service 146 may then request a print service from the network lookup service 136. The service object for the print service 138 may then be returned to the personal organizer 152. An interface 142 between the on-device services/applications and the off-device services is illustrated in FIG. 3. Details follow on how the integration of on-device/off-device services may be implemented.
As noted above, clients of services may themselves be services to other clients. For example, the email client “application” 150 of the smart cellular phone shown in FIG. 3 may itself be a service to a client running in the containment framework 144 or to a network client. For example, in the case of malfunction, the printer 130 shown in FIG. 3 may request an email service so that it can send diagnostic information to a service technician. If the network lookup service 136 cannot find a network-based email service, it may request an email service from the smart cellular phone 134 via the interface 142. A service object for the email application/service 150 running in the containment framework 144 may be passed to the requesting printer client 130. In this example, the printer client 130 may communicate directly with the email application/service 150 to send an email containing diagnostic information to a printer service technician. The email application/service 150 may send the email immediately if it is able to find an email server service, or it may send the email later when such a service becomes available when the cellular phone user connects to a different network.
Although the above description references specific protocols and programming models, such as Jini™ technology, it is noted that these specific technologies are exemplary only. For example, the applications and services within the containment framework may be integrated with clients, services, devices, networks, etc. which employ any of various types of standards, protocols, and programming models, including, but not limited to: Jini™, CORBA, COM/DCOM, Bluetooth, CAL, CEBus, HAVi, Home API, HomePNA, HomePnP, HomeRF, VESA, etc.
FIG. 8—Containment Framework Block Diagram
FIG. 8 is an abstract block diagram illustrating the basic architecture of the containment framework environment. As described above, the containment framework provides a containment system for applications and services. These applications and services are managed within the system as units called modules. The containment framework is lightweight; in one embodiment, modules may interact with a single framework manager object which performs all module management. This manager is referred to herein as the central framework instance. In one embodiment, the central framework instance may be implemented as an instance of a Java™ class. FIG. 8 illustrates the central framework instance 170 and the code and data it comprises/manages. It is noted that FIG. 8 illustrates one embodiment of the containment framework. Other embodiments may employ a different architecture and/or may be implemented in different programming languages or software environments. For example, the module management/containment performed by the central framework instance 170 illustrated in FIG. 8 may be performed by multiple objects or components in other embodiments.
As shown in FIG. 8, the central framework instance 170 comprises data 182 representing the modules currently loaded in the system. The containment framework architecture is non-hierarchical. Thus, the loaded modules may be represented as a flat list or array of modules. This non-hierarchical system helps to keep the core containment framework code and the modules running within the framework compact. Systems employing hierarchical components such as JavaBeans™ components may provide associated benefits, but the benefits come at the expense of a more complex management system requiring more system resources. However, the containment framework does provide a mechanism for the non-hierarchical modules to gain many of the benefits of a hierarchical containment system. This mechanism is described below for FIGS. 9 and 10.
As shown in FIG. 8, in one embodiment the central framework instance 170 comprises publicly accessible methods 178 which modules may call. These methods may be broken into abstract groups. For example, one group of methods 172 may comprise lookup methods. Lookup methods implement the lookup service functionality described above. Modules may pass a module descriptor to a lookup method of the central framework instance 170 to locate a particular service module. The containment framework lookup process is described below for FIG. 12. Another group of framework methods 174 may comprise methods for loading and unloading modules. After finding a service module, a client module may request the central framework instance 170 to load the service module and return a reference to the loaded module. The client module may then invoke the service. The client may call a framework method to release the service module when it is finished using it. Although described as distinct groups, the division of methods into lookup and load/unload groups may be only a conceptual division. For example, in one embodiment a lookup method may also load a module that it matches and return a reference to the matched module.
FIG. 8 also illustrates system data 180 referred to as framework metadata, which may comprise data 182 describing the list of loaded modules and other data describing the state of the system. Another abstract group of methods 176 of the central framework instance 170 may comprise reflection methods. Reflection methods are somewhat different than the other groups of methods since they provide direct access to the core metadata 180. A special class of modules called system modules may call reflection methods to gain access to the metadata 180. Regular modules may not access the metadata 180.
After receiving a reference to the core system data 180, a system module may use or modify the data in any way desirable. Thus, the containment framework is highly extendable. The central framework instance 170 may itself remain small, and system modules may be added to implement any functionality not already enabled by the central framework instance 170. For example, a system module may enable the integration described above for FIGS. 3-7 between applications/services running within the containment framework and services based in an external network.
In this example, such a system module may be written as a secondary lookup service that conforms to the protocols and programming model of the external network. For example, for a Jini™ network, a system module may be written which discovers the Jini™ network lookup service and joins the network lookup service, registering itself as a secondary lookup service. When a network client requests a service, the network lookup service may invoke the lookup service implemented by the system module. This system module may attempt to find a service module within the containment framework which matches the description of the requested service. If a match is found, then the system module may perform any necessary steps to export the service module to the network client, since the system module has full access to the system module list and metadata. For example, the system module may load and register the matched service module into the system and return an interface, such as a Java™ interface, to the newly loaded module to the requester.
FIGS. 9 and 10—Simulating a Hierarchical Environment
It is often desirable to establish a hierarchical context for modules. For example, several service modules of the same type may be present in a system, but each may behave slightly differently. In a hierarchical containment system, a request by a module for a service may be filtered through a parent or containing module of the requesting module so that a reference to a specific service module may be passed back to the requester. Hierarchical containment also has other inherent advantages, such as an ability to easily distribute and store data among a hierarchy of modules. However, as stated above, a fall implementation of a hierarchical containment system may be very costly in terms of the system resources required, such as memory and processing power. The containment framework may provide a mechanism giving developers and applications many of the benefits of hierarchical containment, but without the high overhead costs usually associated with it.
For example, one embodiment of the containment framework allows modules to register themselves as module request listeners of other modules. For example, a module A may register itself as a request listener of a module B, e.g., by calling an AddRequestListener method of the central framework instance. When module B subsequently calls a method of the central framework instance to find a particular service, the central framework instance checks for any module request listeners for module B. In this case, it finds module A as a request listener, and asks module A to provide the requested service module to module B.
FIGS. 9 and 10 illustrate an exemplary use of module request listeners in the containment framework. FIG. 9 illustrates a desired conceptual module hierarchy for print services. As shown in the figure, two print service modules 192 and 194, print service A and print service B, are encapsulated in a print manager module 190. For example, the two print services 192 and 194 may print to different locations, have different resolution and color capabilities, etc. Either of these print service modules may satisfy a lookup request made by another module for a print service. However, it may be desirable to employ a print manager module which selects and returns a particular print service. For example the print manager 190 may select a print service based on which client module makes the print request, or the print manager may display a dialog box asking for user input for the desired print service characteristics.
Although the containment framework utilizes a non-hierarchical containment model, the hierarchy illustrated in FIG. 9 may be realized by registering the print manager module 190 as a module request listener of client modules that may request a print service. FIG. 10 illustrates example modules 198 which may run in a system. As described earlier, these modules may themselves employ other modules as services. According to the non-hierarchical model of the containment framework, the modules are shown arranged in a flat layout, with no inherent module hierarchy.
In this example, the web browser module 196 may be operable to make a print request, e.g., for printing a web page. As shown in FIG. 10, the print manager module 190 may be registered as a module request listener for the web browser module 196. Upon receiving the print service request from the web browser 196, the containment framework lookup service may find the print manager module 190 registered as a request listener for the web browser module 196 and may ask the print manager module 190 to provide a print service module to the web browser requestor 196. The print manager module 190 may then return a reference to print service module A 192 or print service module B 194, or the print manager module 190 may present a dialog box to the user to decide which print service module to return, etc. Thus, the desired module hierarchy of FIG. 9 may be implemented for non-hierarchical modules of the containment framework.
FIG. 11—Parcel Packaging Units
Modules may be packaged into units referred to as parcels. This packaging serves several purposes. For example, parcels provide a convenient mechanism to manage related code and data as a unit. If closely related modules have static dependencies, then they may be packaged together into a parcel. Parcels may be used to handle installation and upgrading within a system.
FIG. 11 illustrates an example parcel 200 that groups together modules related to a personal information manager (PIM). The figure shows a calendar module 202, a contact list module 204, an appointment module 208, and a user interface module 206. Various other modules may be present in the parcel as desired. The modules of the PIM parcel 200 may also make use of various core service modules running within the containment framework, such as bookmark services, find services, etc. The use of a PIM parcel may simplify installation and upgrading of a PIM application. Packaging the PIM modules into a parcel in this way also has the development-time benefit of creating separate code units for multi-target development.
Parcels also provide an additional way to provide a run-time context for non-hierarchical modules. When a module is loaded into the system, the central framework instance may store metadata specifying which parcel, if any, the module belongs to. Service modules may later use this information to provide services differently for different client modules, depending on which parcel the client belongs to. For example, client modules may use a file access service module to obtain a root directory. The file access module may return different root directories for different clients, depending on which parcels the clients belong to.
FIG. 12—Module Request Flowchart Diagram
FIG. 12 is a flowchart diagram illustrating a typical lookup process that the central framework instance may perform when it receives a lookup request for a service module from a client module. It is noted that FIG. 12 is exemplary and that various steps may be combined, omitted, or modified. For example, as noted previously, system modules may be added which customize the lookup process.
In step 300 of FIG. 12, the central framework instance receives a module lookup request from a requestor module. For example, the requestor module may call a RequestModule method of the central framework instance, passing a module descriptor for the service module being requested, as well as a reference to the requestor module itself. The reference to the requester module may be added to the system data so to keep track of service module users. As described in more detail below, a module may be unloaded when no other modules are using it.
The module descriptor passed by the requestor module specifies various attributes about the requested module that the framework instance can use to attempt to find a matching module. This module descriptor may be an object which comprises information such as the requested module's service type, class name, and/or service-specific attributes, etc. The requestor may also pass a text description to the central framework instance, which the central framework instance may use to create a module descriptor object.
In step 302, the central framework instance checks to see whether any request listener modules are registered for the requesting module. If a request listener is found, then in step 304 the framework instance notifies the request listener of the request and instructs the request listener to attempt to provide a module which matches the module request descriptor. If the request listener can provide a matching module, then execution proceeds to step 314. Otherwise, other registered request listeners may be asked to provide a module, until a match is found or there are no more request listeners.
If no request listeners are found, or if no request listeners can provide the requested module, execution proceeds to step 306. However, in one embodiment, if one or more request listeners are registered for the requesting module, and none of them are able to provide a matching module, then execution may stop after step 304. In step 306, the central framework instance checks the list of modules to determine whether one of the modules matches the module descriptor. If a match is found, then in step 308 the framework instance checks whether the matched module is multi-instantiable. If not, then execution proceeds to step 314.
If the matched module is found to be multi-instantiable in step 308, then the central framework instance may continue to search through the module list for a match. If there are no more modules to search, execution proceeds to step 310. In step 310, the framework instance searches for module-provider modules in the module list. Module-provider modules are modules capable of providing a requested module. For example, a network lookup service may be imported as a module-provider module for the containment framework.
If a module-provider module is found, then in step 312, the central framework instance notifies the module-provider module of the request and instructs it to attempt to provide a module which matches the module request descriptor. If a match is found then execution proceeds to step 314. If the module provider cannot provide the requested module, the central framework instance may search for other module-provider modules and repeat step 312. If no module providers are present in the module list or if none can provide the requested module, then the requestor is notified that the request cannot be fulfilled, and execution completes.
Step 314 may be reached from step 304, 308, or 312. In all cases, a module is found which matches the module request descriptor. In step 314 the requestor is registered as a user of the matched module, and in step 316 a reference to the matched module is returned to the requestor. Any necessary initialization steps involved in loading and initializing the matched module are also performed in step 314. For example, modules may have an Initialize method that is called when a module is loaded.
As noted above, the flowchart of FIG. 12 is exemplary, and various embodiments may have different lookup/load scenarios. For example, a module may call a central framework method to load a service module without returning a reference to the matched module, or request listeners may be ignored in some cases, etc.
FIG. 13—Module Release Flowchart Diagram
When a client module is finished using a service module, the client may call a method of the central framework instance to release the module. FIG. 13 is a flowchart diagram illustrating the module release process. The flowchart of FIG. 13 is exemplary, and various steps may be combined, omitted, added, or modified as required or desired for different embodiments.
In step 330, the central framework instance receives a module-release notice from a user module. As described above for FIG. 12, when a user module requests a service module, the user module is added to a list of users of the service module. In step 332, the central framework instance removes the releasing user module from the list of users of the released module. In step 334, the framework instance determines whether any other user modules are using the released module, e.g., by checking whether other modules are present in the releases module's user module list. If so, then execution stops.
If no other modules are using the released module, the central framework instance may attempt to unload the released module. In step 336, the framework instance may call a CanFinalize method of the released module. The CanFinalize method returns true if the module can be unloaded, or false otherwise. If the CanFinalize method returns false in step 336, then execution stops. Otherwise, a Finalize method of the released module may be called. The Finalize method may perform any necessary steps for unloading the module, such as releasing resources. The module may then be unloaded, which may involve garbage-collection, etc., depending on the particular embodiment.
Although the present invention has been described in connection with specific embodiments, it is not intended to be limited to the specific forms set forth herein, but on the contrary, it is intended to cover such alternatives, modifications, and equivalents, as can be reasonably included within the spirit and scope of the invention as defined by the appended claims.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US4991199 *||May 5, 1988||Feb 5, 1991||Transaction Technology, Inc.||Computer and telephone apparatus with user friendly computer interface and enhanced integrity features|
|US5485370 *||Aug 25, 1993||Jan 16, 1996||Transaction Technology, Inc.||Home services delivery system with intelligent terminal emulator|
|US5923552 *||Dec 31, 1996||Jul 13, 1999||Buildnet, Inc.||Systems and methods for facilitating the exchange of information between separate business entities|
|US5933816 *||Aug 7, 1997||Aug 3, 1999||Citicorp Development Center, Inc.||System and method for delivering financial services|
|US6115641 *||May 22, 1998||Sep 5, 2000||Buildnet, Inc.||Systems and methods for facilitating the exchange of information between separate business entities|
|US6115642 *||May 22, 1998||Sep 5, 2000||Buildnet, Inc.||Systems and methods for facilitating the exchange of information between separate business entities|
|US6178510 *||Sep 4, 1997||Jan 23, 2001||Gtech Rhode Island Corporation||Technique for secure network transactions|
|US6199762 *||May 6, 1998||Mar 13, 2001||American Express Travel Related Services Co., Inc.||Methods and apparatus for dynamic smartcard synchronization and personalization|
|US6304893 *||Jul 1, 1996||Oct 16, 2001||Sun Microsystems, Inc.||Object-oriented system, method and article of manufacture for a client-server event driven message framework in an interprise computing framework system|
|US6339826 *||May 5, 1998||Jan 15, 2002||International Business Machines Corp.||Client-server system for maintaining a user desktop consistent with server application user access permissions|
|US6349333 *||Dec 4, 1998||Feb 19, 2002||Sun Microsystems, Inc.||Platform independent alarm service for manipulating managed objects in a distributed network management system|
|US6351751 *||May 14, 1998||Feb 26, 2002||Sun Microsystems, Inc.||Persistent storage managers for configuring client/server environments|
|WO1998037486A1||Feb 18, 1997||Aug 27, 1998||Thomas Eirich||Method for lookup of packages and classes in java, and devices making use of this method|
|1||Clark, "Network nirvana and the intelligent device," IEEE Concurrency, vol. 7, No. 2, Apr. 1999, pp. 16-19.|
|2||Dolvane et al., "PersonalJava & Information Appliance, Part I," Dr. Dobb's Journal, Jan. 1999, pp. 60, 62, 64-68.|
|3||Frank, "PersonalJava and Inferno for Today's Consumer Devices," Java Developers Journal, vol. 3, Iss. 3, Mar. 1998, pp. 8-14.|
|4||Fuentes et al., "A Java Framework for Web-Based Multimedia and Collaborative Applications," IEEE Internet Computing, vol. 3, No. 2, Mar. 1999, pp. 55-64.|
|5||Search Report for International Application No. PCT/US 00/14173, mailed Nov. 6, 2000.|
|6||*||www.google.com (2) computer search listing, Aug. 6, 2001.*|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US6628759 *||Dec 10, 1999||Sep 30, 2003||Agere Systems, Inc.||Alert signal during telephone conversation|
|US6715088 *||Feb 10, 2000||Mar 30, 2004||Fujitsu Limited||Method, apparatus and memory medium storing a program controlling power consumption of an electronic apparatus while connected to a network by constantly supplying status information to a management apparatus, over the network|
|US6757262 *||Sep 15, 2000||Jun 29, 2004||Motorola, Inc.||Service framework supporting remote service discovery and connection|
|US6789126 *||Oct 19, 2000||Sep 7, 2004||Sun Microsystems, Inc.||Addressing message gates in a distributed computing environment|
|US6952715||Dec 12, 2003||Oct 4, 2005||Amazon.Com, Inc.||Universal protocol for enabling a device to discover and utilize the services of another device|
|US7017159 *||Jun 15, 1999||Mar 21, 2006||Sun Microsystems, Inc.||Smart bookmarks for small footprint device applications|
|US7143419||Jun 5, 2002||Nov 28, 2006||Sap Ag||Device for running offline applications and synchronizing with a central computer system|
|US7162543||Jun 5, 2002||Jan 9, 2007||Sap Ag||Process for synchronizing data between remotely located devices and a central computer system|
|US7164885 *||Dec 18, 2000||Jan 16, 2007||Telefonaktiebolaget L M Ericsson (Publ)||Method and apparatus for selective service access|
|US7177940||Sep 25, 2000||Feb 13, 2007||Microsoft Corporation||Representing a service discovery stream as an N-ary tree|
|US7200643 *||Dec 28, 2000||Apr 3, 2007||Valtion Teknill•Inen Tutkimuskeskus||Controller and controlling method thereof|
|US7343427 *||Jun 5, 2001||Mar 11, 2008||Sony Corporation||Method and an apparatus for the integration of IP devices into a HAVi network|
|US7464384 *||Mar 14, 2002||Dec 9, 2008||International Business Machines Corporation||Method for inter-object communication|
|US7486628 *||Dec 21, 1999||Feb 3, 2009||Nortel Networks Limited||Wireless network communications|
|US7503034||Oct 31, 2002||Mar 10, 2009||International Business Machines Corporation||Method and system for dynamically mapping archive files in an enterprise application|
|US7509212 *||Jan 24, 2005||Mar 24, 2009||International Business Machines Corporation||Enabling services on a UAV|
|US7765521||Nov 25, 2002||Jul 27, 2010||Jeffrey F Bryant||Configuration engine|
|US7778675||Jan 13, 2006||Aug 17, 2010||American Megatrends, Inc.||Remotely accessing a computing device in a low-power state|
|US7849190 *||Feb 23, 2001||Dec 7, 2010||Nokia Siemens Networks Oy||Internet protocol based service architecture|
|US7865500 *||Nov 24, 2004||Jan 4, 2011||Samsung Electronics Co., Ltd.||Apparatus and method for sharing services on network|
|US7877756||Sep 24, 2008||Jan 25, 2011||International Business Machines Corporation||Apparatus and method for inter-object communication|
|US7974661||Jul 6, 2010||Jul 5, 2011||American Megatrends, Inc.||Remotely accessing a computing device in a low-power state|
|US8175921 *||May 30, 2000||May 8, 2012||Nokia Corporation||Location aware product placement and advertising|
|US8238946 *||Mar 7, 2003||Aug 7, 2012||International Business Machines Corporation||Method for personalizing messages delivered to a communication terminal that preserves the privacy of the recipient of the message|
|US8370852||Oct 28, 2010||Feb 5, 2013||International Business Machines Corporation||Inter-object communication|
|US8374777||Dec 19, 2005||Feb 12, 2013||International Business Machines Corporation||GPS equipped devices that utilize geographical navigation bundles|
|US8588693||Mar 31, 2010||Nov 19, 2013||Blackberry Limited||Device, system and method for selecting, sharing and displaying electronic content|
|US8625473 *||Aug 2, 2002||Jan 7, 2014||Siemens Aktiengesellschaft||Method for forming an ad hoc network|
|US8656316||Mar 31, 2010||Feb 18, 2014||Blackberry Limited||Device, system and method for selecting, sharing and displaying electronic content|
|US8781529||Oct 16, 2006||Jul 15, 2014||Frence Telecom||Method and device for managing applications of a mobile terminal|
|US8964220||May 22, 2012||Feb 24, 2015||Flexiworld Technologies, Inc.||Mobile devices supporting wireless synchronization over a wireless Network compatible, at least partly, with IEEE 802.11 standard(s)|
|US8989064||Oct 30, 2007||Mar 24, 2015||Flexiworld Technologies, Inc.||Wireless controller wire connectable to output devices such as televisions for accessing digital content and for wireless communication with mobile information apparatus|
|US9036181||Apr 20, 2010||May 19, 2015||Flexiworld Technologies, Inc.||Wireless printing device for printing digital content received via wireless communication compatible, at least partly, with IEEE 802.11 or Bluetooth|
|US9037088||May 21, 2012||May 19, 2015||Flexiworld Technologies, Inc.||Smart phone that includes a wireless communication unit compatible with at least one protocol within bluetooth and/or IEEE802.11 standards for wireless transmission of audio digital content from the smart phone to a wireless audio output device for voice output or music playing|
|US9042811||Apr 20, 2010||May 26, 2015||Flexiworld Technologies, Inc.||Specification of smart wireless television for rendering digital content|
|US9052845 *||Jan 31, 2011||Jun 9, 2015||Sap Se||Unified interface for meta model checking, modifying, and reporting|
|US9069510||May 19, 2010||Jun 30, 2015||Flexiworld Technologies, Inc.||Touch sensitive screen information apparatus that includes close proximity or near distance radio frequency field communication|
|US9092177||Dec 7, 2012||Jul 28, 2015||Flexiworld Technologies, Inc.||Smart phones that include a digital camera, a touch sensitive screen, support for voice activated commands, and support to at least part of a protocol within IEEE 802.11 standards|
|US9110622||Dec 10, 2012||Aug 18, 2015||Flexiworld Technologies, Inc.||Internet-pads that include a digital camera, a touch sensitive screen interface, and support for voice activated commands|
|US20020007321 *||Mar 22, 2001||Jan 17, 2002||Burton Peter A.||Methods and apparatus for on-line ordering|
|US20020013723 *||May 23, 2001||Jan 31, 2002||Toshiro Mise||Method and system for supervising and supporting customer services offered to a contracted dwelling house by a service provider using a communication network|
|US20020073244 *||Jun 5, 2001||Jun 13, 2002||Davies Nigel Andrew Justin||Method and an apparatus for the integration of IP devices into a HAVi network|
|US20040088681 *||Oct 31, 2002||May 6, 2004||Berg Daniel C.||Method and system for dynamically mapping archive files in an enterprise application|
|US20040177072 *||May 17, 2001||Sep 9, 2004||Ilkka Salminen||Smart environment|
|US20040203958 *||Mar 7, 2003||Oct 14, 2004||International Business Machines Coporation||Method for personalizing messages delivered to a communication terminal that preserves the privacy of the recipient of the message|
|US20040205153 *||Mar 9, 2004||Oct 14, 2004||Bernhard Weisshaar||Service framework supporting remote service discovery and connection|
|US20050138037 *||Nov 24, 2004||Jun 23, 2005||Samsung Electronics Co., Ltd.||Apparatus and method for sharing services on network|
|US20050152380 *||Dec 8, 2004||Jul 14, 2005||Samsung Electronics Co., Ltd.||Apparatus and method for sharing services on a network|
|US20120198415 *||Aug 2, 2012||Sap Ag||Unified interface for meta model checking, modifying, and reporting|
|CN1987512B||Oct 13, 2006||Sep 7, 2011||国际商业机器公司||Method and system for providing and utilizing geographical navigation bundles|
|EP1542404A1 *||Dec 6, 2004||Jun 15, 2005||Samsung Electronics Co., Ltd.||Sharing services on a network|
|WO2002099592A2 *||Jun 6, 2002||Dec 12, 2002||Sap Markets Inc||An application programming interface layer for a device|
|WO2003013007A2 *||Jul 26, 2002||Feb 13, 2003||Alan R Manstof||System and method of providing wireless marketing incentives|
|WO2007045790A1 *||Oct 16, 2006||Apr 26, 2007||France Telecom||Method and device for managing applications of a mobile terminal|
|U.S. Classification||709/203, 719/310|
|International Classification||G06F9/44, G06F9/445, H04L12/28, G06F9/54, G06F9/46|
|Cooperative Classification||H04L2012/2841, H04L12/2805, G06F9/54, H04L12/2814, G06F9/465, H04L12/2809|
|European Classification||G06F9/54, H04L12/28H1, G06F9/46M, H04L12/28H2D|
|Sep 20, 1999||AS||Assignment|
Owner name: SUN MICROSYSTEMS, INC., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BAKER, MARK;DUGGAN, JOSH;REEL/FRAME:010251/0456;SIGNING DATES FROM 19990806 TO 19990809
|Jan 13, 2006||FPAY||Fee payment|
Year of fee payment: 4
|Jan 6, 2010||FPAY||Fee payment|
Year of fee payment: 8
|Jan 8, 2014||FPAY||Fee payment|
Year of fee payment: 12