Method for preserving the state of a java applet during the lifetime of its container
First Claim
1. A method of controlling the creation of a Java object associated with a markup language document that at least partially defines a Web page displayed by a browser when the browser visits the Web page, the browser executing on a client computer connectable to a server computer, the method comprising:
- receiving the markup language document that at least partially defines a Web page;
analyzing the markup language document to determine if an instruction to create the Java object is contained therein;
determining whether the Java object exists in a persistence manager object, wherein the persistence manager object is configured into a non-persistence object that is adapted for operation on a Java virtual machine; and
if the Java object does not exist in the persistence manager object, creating the Java object and registering the Java object with the persistence manager.
3 Assignments
0 Petitions
Accused Products
Abstract
A method of controlling the existence of a Java object associated with a Web page in order to reuse the object, rather than create a new one when the Web page is revisited. The invention provides a method for allowing an object to register with a persistence manager upon creation, which maintains objects registered with it while the Web page is no longer being viewed. A Web browser translates instructions to create a Web page and invokes any Java objects resident on the page. The objects then check with the persistence manager to determine if the objects are present in the persistence manager. The objects in the persistence manager are then used, rather than creating new objects. The object remains registered until such time as it no longer needs to persist or until the Web browser is completely shut down.
-
Citations
10 Claims
-
1. A method of controlling the creation of a Java object associated with a markup language document that at least partially defines a Web page displayed by a browser when the browser visits the Web page, the browser executing on a client computer connectable to a server computer, the method comprising:
-
receiving the markup language document that at least partially defines a Web page;
analyzing the markup language document to determine if an instruction to create the Java object is contained therein;
determining whether the Java object exists in a persistence manager object, wherein the persistence manager object is configured into a non-persistence object that is adapted for operation on a Java virtual machine; and
if the Java object does not exist in the persistence manager object, creating the Java object and registering the Java object with the persistence manager. - View Dependent Claims (2, 3, 4, 5, 6, 7)
if the Java object exists in the persistence manager object, returning the Java object from the persistence manager.
-
-
3. The method of claim 1, wherein the steps of registering the Java object with the persistence manager or returning the Java object in the persistence manager is accomplished by persistence carriers contained in a static reference mechanism.
-
4. The method of claim 3, wherein the step of determining whether the Java object exists in the persistence manager comprises:
-
passing a predetermined identifier of a desired persistence carrier to the persistence manager; and
using this predetermined identifier, determining whether the Java object already exists.
-
-
5. The method of claim 2, wherein the steps of registering the Java object with the persistence manager or returning the Java object in the persistence manager is accomplished by persistence carriers contained in a static reference mechanism.
-
6. The method of claim 5, wherein the step of determining whether the Java object exists in the persistence manager comprises:
-
passing a predetermined identifier of a desired persistence carrier to the persistence manager; and
using this predetermined identifier, determining whether the Java object already exists.
-
-
7. The method of claim 1, further comprising:
-
determining if the Java virtual machine is shut down;
if the Java virtual machine is determined to be shutdown, deleting at least one Java object associated with the persistence manager.
-
-
8. A method of controlling the creation of a Java object associated with a markup language document that at least partially defines a Web page displayed by a browser when the browser visits the Web page, the browser executing on a client computer connectable to a server computer, the method comprising:
-
receiving the markup language document that at least partially defines a Web page;
analyzing the markup language document to determine if an instruction to create the Java object is contained therein;
determining whether the Java object exists in a persistence manager object, wherein the persistence manager object is configured into a non-persistence object that is adapted for operation on a Java virtual machine;
if the Java object does not exist in the persistence manager object, creating the Java object and registering the Java object with the persistence manager; and
if the Java object exists in the persistence manager object, returning the Java object from the persistence manager, wherein the steps of registering the Java object with the persistence manager or returning the Java object in the persistence manager is accomplished by the use of carriers contained in a static reference mechanism. - View Dependent Claims (9, 10)
passing a predetermined identifier of a desired persistence carrier to the persistence manager; and
using this predetermined identifier, determining whether the Java object already exists.
-
-
10. The method of claim 8, further comprising:
-
determining if the Java virtual machine is shut down;
if the Java virtual machine is determined to be shutdown, deleting at least one Java object associated with the persistence manager.
-
Specification