A method and apparatus for extending a java beans archive file. A key/value pair is added to the manifest file specification to allow an application to determine information about the sub-element composition of a java bean. The key provides a unique integer "N" which allows the specification of a java bean in the archive file. The value pair provides specification for a tag for indicating the type of a specific sub-element file in the archive file.
|
6. An apparatus for identifying information about a plurality of java beans in a java archive file, comprising:
means for generating a key within a manifest file in the java archive file for a selected one of said java beans having a unique integer identifying said selected java bean in said computer system; means for generating a first tag for said selected java bean indicating a type of a specific sub-element file within the manifest file in the java archive file; and means for associating said tag with said key for identifying information for said selected java bean within the manifest file in the java archive file in said computer system.
1. A method, implemented in a computer system, for identifying information about a plurality of java beans in a java archive file, comprising the steps of:
generating a key within a manifest file in the java archive file for a selected one of said java beans having a unique integer identifying said selected java bean in said computer system; generating a first tag for said selected java bean indicating a type of a specific sub-element file within the manifest file in the java archive file; and associating said tag with said key for identifying information for said selected java bean within the manifest file in the java archive file in said computer system.
11. A computer program product having a computer readable medium having computer program logic recorded thereon for identifying information about a plurality of java beans in a java archive file, comprising:
computer readable means for generating a key within a manifest file in the java archive file for a selected one of said java beans having a unique integer identifying said selected java bean in said computer system; computer readable means for generating a first tag for said selected java bean indicating a type of a specific sub-element file within the manifest file in the java archive file; and computer readable means for associating said tag with said key for identifying information for said selected java bean within the manifest file in the java archive file in said computer system.
2. The method of
assigning to said unique integer a value "N" by a user in said computer system identifying said selected one of said plurality of java beans within the manifest file in the java archive file.
3. The method of
designating a sub-element type descriptor for said tag for said selected one of said plurality of java beans in said computer system.
4. The method of
generating a second tag for a different one of said java beans in the manifest file in the java archive file in said computer system; and associating said second tag with said key to identify information for said java bean in the manifest file in said java archive file.
5. The method of
7. The apparatus of
means for assigning to said unique integer a value "N" by a user in said computer system identifying said selected one of said plurality of java beans within the manifest file in the java archive file.
8. The apparatus of
means for designating a sub-element type descriptor for said tag for said selected one of said plurality of java beans in said computer system.
9. The apparatus of
means for generating a second tag for a different one of said java beans in the manifest file in the java archive file in said computer system; and means for associating said second tag with said key to identify information for said java bean in the manifest file in said java archive file.
10. The apparatus of
12. A computer program product of
computer readable means for assigning to said unique integer a value "N" by a user in said computer system identifying said selected one of said plurality of java beans within the manifest file in the java archive file.
13. A computer program product of
computer readable means for designating a sub-element type descriptor for said tag for said selected one of said plurality of java beans in said computer system.
14. A computer program product of
computer readable means for generating a second tag for a different one of said java beans in the manifest file in the java archive file in said computer system; and computer readable means for associating said second tag with said key to identify information for said java bean in the manifest file in said java archive file.
15. A computer program product of
|
This application is related in subject matter to the following application filed concurrently herewith and assigned to a common assignee:
Application Ser. No. 08/968,719 filed by Craig Becker, John Cook, Troy Folger and Jim Knutson entitled, "Method and Apparatus For A Data Model Structure For Accessing and Manipulating Java Beans" pending.
The foregoing co-pending application is incorporated herein by reference.
The present invention relates to data processing systems, and more particularly, to a methodology and structure for extending the file format of an archived object-oriented object.
Over the past few years, constructing applications by assembling reusable software components has emerged as a highly productive and widely accepted way to develop custom applications. First generation products such as Microsoft's Visual Basic, with its VBX components and "forms-based" applications assembly process proved to be very useful in building a broad spectrum of applications. Visual Basic has been followed by other products such as Borland's Delphi, which further enhanced the basic component assembly application development model by adding more powerful data access components and object-oriented component extension capabilities.
The release of a windowing system, Internet protocol and platform independent product named Java represented an even further advance. Java represents an object-oriented language which satisfies the public's desire to animate and add dynamism to the static web pages of the Internet. More importantly, Java's platform independence levels the playing field for software vendors, enabling them to escape the dominance of a single supplier. Java permits writing to a virtual platform which is installed on most desktop web browsers. System managers have quickly recognized the advantage of a single master copy of programs that are stored in one place, ideal for easy update, that downloads to the client for the duration of the session, thus exploiting the users desktop processor in a client/server model but without the client side maintenance and version control costs. For details and background with respect to the Java System, reference may be made to a typical text, "Just Java", 2nd Edition, Peter van der Linden, Sun Microsystems, 1997.
More recently, the introduction of Java Beans has taken the component software assembly paradigm to a new level. Java Beans is an architecture and platform-neutral Application Programming Interface (API) for creating and using dynamic Java components. Java Beans and their common properties and functions are described in detail in the text, "Java in a Nutshell, 2nd. Edition, David Flanagan, O'Reilly and Assoc. Inc., 1997. Java Beans enhance the Java platform by allowing richer, more dynamic interaction. Java Beans allow developers to define independent components that can be used and re-used in a variety of combinations to compose new applications inside a variety of browser and non-browser environments. Java Beans components can be GUI widgets, non-visual functions and services, applets and more full-scale applications. Each of these components can be built by different developers at separate times. Java Beans components do not need to be part of the same application build but communicate dynamically.
Java employs a platform independent file format that concatenates and compresses many Java class, image and audio files into one called a JAR (Java Archive) file. One of the main attributes of the JAR file is to reduce the number of HTTP (HyperText Transfer Protocol) connections that need to be opened, thus reducing download times. The JAR file format is the popular ZIP format and is used as a general archiving tool. The JAR file archive format for Java Beans contains a Manifest file (MANIFEST.MF) which provides the basic information about the sub-element composition of a Java Bean. The Manifest file enables the association of attributes to files. There are a number of pre-defined attributes. For example, one of them is the "Java Bean:" attribute. A sub-element is a Java Bean if its "Java Bean:" attribute has the value "True".
However, there are limited abilities in JAR files for building rich associations between the sub-elements contained within the JAR file. Tools and programmers working in a Java Bean development environment need to be able to examine, add, change, or delete the associations between the sub-elements that make up a Java Bean and that make up the total JAR file. They are constrained in their ability to do this by the conventions and mechanics of the attribute mechanism in the Manifest file. It is very difficult, for instance, for a program to know with which Java Bean certain file sub-elements are associated, when more than one Java Bean resides in a JAR file. If an icon file, for instance, is present in the JAR file, does that icon file apply to the first Java Bean, to the last, or at all?
Consequently, it would be desirable to provide a methodology and structure for providing additional information about the Java Beans stored in a Java Archive file.
This invention relates to a method and structure for extending a Java Beans Archive file. A key/value pair is added to the manifest file specification to allow an application to determine information about the sub-element composition of a Java Bean. The key provides a unique integer "N" which allows the specification of each Java Bean in the archive file. The value provides a tag for indicating the type of a specific sub-element file in the archive file.
FIG. 1 illustrates the format for a Java Archive file;
FIG. 2 is the prior art structure for storing Java Beans in a Java Archive file;
FIG. 3 is a key:value pair for storing Java Beans in a Java Archive file as disclosed in this invention;
FIG. 4 is an illustrative embodiment of a computer system/workstation where the present invention may be practiced;
FIG. 5 is an illustrative embodiment of a computer network where the present invention may be practiced.
This invention provides methodologies and structures for extending a Java Archive manifest file specification used for storing and transmitting a Java Bean. A Java Bean, or just Bean, consists of one or more files, each containing compiled Java code or data, that is associated with the Java Bean. A Bean is a software component which can be visually manipulated in development environments. Beans provide an effective way of creating Java applets and applications. In addition, Bean components can be created which are as complex as existing applications, like a spreadsheet or as simple as a button on a GUI.
Java Beans are typically distributed and installed in a development environment by packaging them in a JAR (Java ARchive) file. These files are essentially ZIP files that are created using a JAR utility. When Beans are shipped as part of a JAR file, the term Bean may also refer to a serialized version of the Bean which is used to instantiate the Bean. Referring to FIG. 1, there is shown the format for a JAR file. The JAR file has a standard subdirectory of meta-information that is always named META-INF 10. The subdirectory 10 contains a single manifest file that is always named MANIFEST.MF 12. The MANIFEST.MF 12 file contains arbitrary information about the files in the archive, such as their encoding or language. The information about the files is stored as sets of key-value pairs in text form. The JAR file is also capable of containing zero or more signature files with a standard filename suffix of .SF 14. There is one of these files for each entry that has signed files in the archive. In addition, the JAR file may contain zero or more digital signature files 16, where the suffix of the signature 16 (for example, .RSA) has a one to one correspondence with the algorithm and format used to compute the signature.
In addition to the MANIFEST.MF 12 subdirectory, the archive contains whatever files 18 a user wishes to package in the archive, such as files to be installed for an automatic software installation feature. This invention extends the manifest file specification of the Java Bean Archive file so that information is available on which sub-element is the "Bean class file", which is the BeanInfo class, which is the Customizer class, which files contains icons, which contain source code, etc. Additionally, in cases where two or more Java Beans reside in a JAR file, the user is able to determine which sub-element files are associated with which Java Bean.
Referring now to FIG. 2, there is shown a sample plain Manifest file 20 of a prior art Java Archive file. The Manifest file 20 contains three Java Beans which have been designated YourBean 24, MyBean 22 and OurBean 26. The sample Manifest file 20 highlights a problem typically found with the implementation, namely, which Java Bean utilizes ColaDrinks.data 28. Likewise, it is relatively obvious to a user that YBCustomizer.class 30 is a sub-element of YourBean 24, however determining the sub-elements programmatically is problematic.
Referring now to FIG. 3, there is shown a Manifest file 20 using the key:value pair MBInstN:<sub-element type descriptor>, where N is a unique integer corresponding to a Java Bean in a JAR file, and <sub-element type descriptor> is a tag that indicates the type of a specific sub-element file. The key:value extensions allow a Java Bean sub-element to be tied unambiguously to a set of sub-element types. In addition, the invention permits a Java Bean sub-element to be unambiguously affiliated with its Java Bean. Turning again to FIG. 3, the presence of the key:value pairs provides a better understanding of the relationships between the various sub-elements. All sub-elements that have the tag MBInst032 are affiliated with the Java Bean called MyBean 22. Likewise, all sub-elements that have the tag MBInst133 are affiliated with the Java Bean called YourBean 24. Finally, all sub-elements that have the tag MBInst2 (34) are affiliated with the Java Bean called OurBean 26. It is readily apparent that the YBCustomizer.class 30 is a Bean Customizer class that is part of YourBean 24. It is also readily discernable, programmatically or by a user, that ColaDrinks.data 28 is affiliated with both MyBean 22 and OurBean 26. One skilled in the art appreciates that the invention solves the basic problem of which element is the main element for a Java Bean, but also identifies when a Java Bean sub-element serves two or more different functions, in two or more different Beans. For example, if a sub-element BeanMain.class is used as the Bean in one Bean, but has been subclassed by a second Bean (e.g., means it no longer "main"), it will appear as follows:
Name: BeanMain.class
MBInst0: MBBeanClass
MBInst1: MBOtherClass
Referring now to FIG. 4, there is shown a pictorial representation of a workstation, having a central processing unit 50, such as a conventional microprocessor, and a number of other units interconnected via a system bus 60. The workstation shown in FIG. 4, includes a Random Access Memory (RAM) 54, Read Only Memory (ROM) 52, an I/O adapter 56 for connecting peripheral devices such as floppy disk unit 76 to the bus, a user interface adapter 64 for connecting a keyboard 62, a mouse 72, a speaker 70, a microphone 74, and/or other user interface devices such as a touch screen device (not shown) to the bus, a communication adapter 58, for connecting the workstation to a data processing network and a display adapter 68, for connecting the bus to a display device 66. The workstation, in the preferred embodiment, has resident thereon the computer software making up this invention, which may be loaded from diskette 78.
A representative network environment where this invention may be practiced is depicted in FIG. 5, which illustrates a pictorial representation of a distributed data processing system 90. As illustrated, data processing system 90 contains a plurality of networks, including local area networks (LAN) 92 and 94, each of which preferably includes a plurality of individual computers 96 and 98, respectively as shown in FIG. 4. One skilled in the art will appreciate that a plurality of workstations coupled to a host processor may be utilized for each such network. As is common in such data processing systems, each computer 96 and 98, may be coupled to a storage device 100, and a printer 102.
Data processing system 90 further includes one or more mainframe computers, such as mainframe computer 104, which may be preferably coupled to LAN 92 by means of a communication link 106. Mainframe computer 104 is preferably coupled to a storage device 108, which serves as remote storage for LAN 92. LAN 92 is also coupled via communications link 110 through communications controller 112 and communications link 114 to gateway server 116. Gateway server 116 is preferably a workstation which serves to link LAN 94 to LAN 92 via communications link 118. As understood by one skilled in the art, data processing system 90 additionally includes unillustrated gateways, routers, bridges, and various other network hardware utilized to interconnect the segments of data processing system 90.
While the invention has been described with respect to a preferred embodiment thereof, it will be understood by those skilled in the art that various changes in detail may be made therein without departing from the spirit, scope, and teaching of the invention. Accordingly, the herein disclosed invention is to be limited only as specified in the following claims.
Cook, John, Becker, Craig Henry, Knutson, James Irwin, Folger, Troy Douglas
Patent | Priority | Assignee | Title |
6530080, | Oct 31 1997 | Sun Microsystems, Inc. | Method and apparatus for pre-processing and packaging class files |
6542908, | Mar 22 2000 | International Business Machines Corporation | Technique for automatically and transparently transforming software components into software components capable of execution in a client/server computing environment |
6560618, | Mar 22 2000 | International Business Machines Corporation | On-demand generation, packaging, and delivery of archive files |
6629150, | Jun 18 1999 | Intel Corporation | Platform and method for creating and using a digital container |
6718364, | Aug 10 1999 | Oracle America, Inc | Method and apparatus for expedited file downloads in an applet environment |
6915401, | Mar 21 2002 | INTELLECTUAL DISCOVERY, INC | System and method for managing off-screen buffers for electronic images |
6917969, | Jan 03 2002 | International Business Machines Corporation | Portable bean-based content rendering |
6980979, | Sep 19 2001 | Oracle America, Inc | Method and apparatus for customizing Java API implementations |
6999976, | May 29 2002 | International Business Machines Corporation | Method, apparatus, and program for using a Java archive to encode a file system delta |
7113999, | Aug 14 2001 | International Business Machines Corporation | Method, computer readable media and apparatus for the selection and rendering of audio files in a networked environment |
7136878, | May 29 2002 | International Business Machines Corporation | Method, apparatus, and program for updating a java archive to encode a file system delta |
7143359, | Jan 03 2002 | International Business Machines Corporation | Emulating advanced graphical user interface elements in a hypermedia content browser |
7150015, | Sep 01 2000 | OP40, Inc | Method and system for deploying an asset over a multi-tiered network |
7152222, | Jan 08 2002 | International Business Machines Corporation | Method and system for localizing Java™ JAR files |
7350207, | May 25 2001 | TELECOM HOLDING PARENT LLC | Rule-based system and method for downloading computer software over a network |
7437720, | Jun 27 2002 | Oracle America, Inc | Efficient high-interactivity user interface for client-server applications |
7647588, | Apr 15 2004 | International Business Machines Corporation | Smart archive for JAR files |
7757229, | Aug 09 2005 | TWITTER, INC | Reflective, XML-based framework for the construction of common application launchers |
7765310, | Jun 23 2005 | LinkedIn Corporation | Opaque cryptographic web application data protection |
7873979, | Dec 10 2004 | Oracle America, Inc | Method and apparatus for javaTV xlets for analog broadcast channels |
8006241, | Jun 20 2007 | GOOGLE LLC | Automatic software installation and cleanup |
8336085, | Nov 15 2004 | Microsoft Technology Licensing, LLC | Tuning product policy using observed evidence of customer behavior |
8347078, | Oct 18 2004 | Microsoft Technology Licensing, LLC | Device certificate individualization |
8353046, | Jun 08 2005 | Microsoft Technology Licensing, LLC | System and method for delivery of a modular operating system |
8438645, | Apr 27 2005 | Microsoft Technology Licensing, LLC | Secure clock with grace periods |
8464348, | Nov 15 2004 | Microsoft Technology Licensing, LLC | Isolated computing environment anchored into CPU and motherboard |
8700535, | Feb 25 2003 | Microsoft Technology Licensing, LLC | Issuing a publisher use license off-line in a digital rights management (DRM) system |
8719171, | Feb 25 2003 | Microsoft Technology Licensing, LLC | Issuing a publisher use license off-line in a digital rights management (DRM) system |
8725646, | Apr 15 2005 | Microsoft Technology Licensing, LLC | Output protection levels |
8781969, | May 20 2005 | Microsoft Technology Licensing, LLC | Extensible media rights |
9189605, | Apr 22 2005 | Microsoft Technology Licensing, LLC | Protected computing environment |
9224168, | Nov 15 2004 | Microsoft Technology Licensing, LLC | Tuning product policy using observed evidence of customer behavior |
9336359, | Oct 18 2004 | Microsoft Technology Licensing, LLC | Device certificate individualization |
9363481, | Apr 22 2005 | Microsoft Technology Licensing, LLC | Protected media pipeline |
9436804, | Apr 22 2005 | Microsoft Technology Licensing, LLC | Establishing a unique session key using a hardware functionality scan |
Patent | Priority | Assignee | Title |
5551028, | Feb 28 1991 | Mentor Graphics Corporation | Design data management system and associated method |
5671412, | Jul 28 1995 | FLEXERA SOFTWARE, INC | License management system for software applications |
5835712, | May 03 1996 | Open Invention Network, LLC | Client-server system using embedded hypertext tags for application and database development |
5842213, | Jan 28 1997 | TUMBLEWEED HOLDINGS LLC | Method for modeling, storing, and transferring data in neutral form |
5862325, | Feb 29 1996 | Intermind Corporation | Computer-based communication system and method using metadata defining a control structure |
5893908, | Nov 21 1996 | Ricoh Company Limited | Document management system |
6018772, | Oct 24 1995 | U S PHILIPS CORPORATION | System for transferring data in re-assignable groups, a transmitter and a receiver for use in such a system, and a method for transferring, transmitting and receiving such data, and a signal comprising such data |
6026437, | Apr 20 1998 | International Business Machines Corporation | Method and system in a computer network for bundling and launching hypertext files and associated subroutines within archive files |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Nov 07 1997 | BECKER, CRAIG H | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 008884 | /0332 | |
Nov 07 1997 | COOK, JOHN A | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 008884 | /0332 | |
Nov 07 1997 | FOLGER, TROY D | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 008884 | /0332 | |
Nov 07 1997 | KNUTSON, JAMES I | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 008884 | /0332 | |
Nov 12 1997 | International Business Machines Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Jan 31 2002 | ASPN: Payor Number Assigned. |
Dec 15 2004 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Mar 16 2009 | REM: Maintenance Fee Reminder Mailed. |
Sep 04 2009 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Sep 04 2004 | 4 years fee payment window open |
Mar 04 2005 | 6 months grace period start (w surcharge) |
Sep 04 2005 | patent expiry (for year 4) |
Sep 04 2007 | 2 years to revive unintentionally abandoned end. (for year 4) |
Sep 04 2008 | 8 years fee payment window open |
Mar 04 2009 | 6 months grace period start (w surcharge) |
Sep 04 2009 | patent expiry (for year 8) |
Sep 04 2011 | 2 years to revive unintentionally abandoned end. (for year 8) |
Sep 04 2012 | 12 years fee payment window open |
Mar 04 2013 | 6 months grace period start (w surcharge) |
Sep 04 2013 | patent expiry (for year 12) |
Sep 04 2015 | 2 years to revive unintentionally abandoned end. (for year 12) |