Pluggable formatters
First Claim
Patent Images
1. A system that facilitates employment of a pluggable formatter, comprising:
- a decision module that retrieves a first data structure as a graph of objects for serialization thereof;
a plurality of rule sets that define serialization information about data structure types;
a surrogate that specifies serialization instructions for all objects of a given type; and
a serialization selector that determines a rule set of the plurality of rule sets to provide to the decision module based on the data structure type, the decision module populating a second data structure based on the serialization information and providing a pluggable formatter with the second data structure, so that the pluggable formatter can serialize the second data structure to an externalized format defined by the pluggable formatter, the pluggable formatter is selected from a variety of pluggable formatters employed on the system.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method is provided for facilitating employment of pluggable formatters by providing a variety of functions or services outside the formatter for handling various functions associated with conventional formatters. The services can be employed to provide the basic functionality associated with serializing and deserializing graphs of objects. The present invention provides facilities which support the plugging in or functionality of formatters in any given wire format for transferring across a connection or between processes.
-
Citations
19 Claims
-
1. A system that facilitates employment of a pluggable formatter, comprising:
-
a decision module that retrieves a first data structure as a graph of objects for serialization thereof; a plurality of rule sets that define serialization information about data structure types; a surrogate that specifies serialization instructions for all objects of a given type; and a serialization selector that determines a rule set of the plurality of rule sets to provide to the decision module based on the data structure type, the decision module populating a second data structure based on the serialization information and providing a pluggable formatter with the second data structure, so that the pluggable formatter can serialize the second data structure to an externalized format defined by the pluggable formatter, the pluggable formatter is selected from a variety of pluggable formatters employed on the system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system that facilitates employment of a pluggable formatter, comprising:
-
a surrogate file that implements serialization instructions for all objects of a given type; a pluggable formatter selected from a variety of employed pluggable formatters that produces a decoded serialized stream based at least in part on the serialization instructions of the surrogate file; a formatter services component that receives the decoded serialized stream from the pluggable formatter and creates a data structure as a graph of objects for deserialization of the decoded serialized stream; and an object manager that tracks data in the decoded serialized stream and determines forward references to additional data to provide fixups to the data structure upon receipt of the additional data. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A method for deserialization of a stream into a graph of objects, the method comprising:
-
implementing a predefined rule set for all objects of a certain type via a surrogate; selecting a pluggable formatter from a variety of employed pluggable formatters to provide a decoded serialized stream; receiving the decoded serialized stream from the pluggable formatter; retrieving from the decoded serialized stream an object from a graph of objects; determining an object type for deserialization; instantiating an uninitialized instance of the object type; selecting a serialization rule set from one of a user defined rule set in the object and a user defined rule set in another object and a default rule set; and populating the uninitialized instance of the object type based on the selected serialization rule set. - View Dependent Claims (15, 16, 17, 18)
-
-
19. A system that facilitates making formatters pluggable, the system comprising:
-
means for providing serialization information of an object from a graph of objects to a pluggable formatter through assignment of a surrogate file, so that the pluggable formatter can serialize the object in a selectable externalized format, the pluggable formatter is chosen from a variety of pluggable formatters implemented on the system; means for tracking deserialization of the object outside the pluggable formatter; means for instantiating an uninitialized instance of an object type, so that the object information can populate the object type; and means for performing fixups on the objects due to forward references.
-
Specification