Pluggable formatters
First Claim
Patent Images
1. A system for serialization and deserialization of an object that facilitates employment of a pluggable formatter, comprising:
- a decision module that retrieves an object from a graph of objects and determines a serialization format for the object based on user defined rules for that object type, the decision module populating a data structure based on the user defined rules and providing the pluggable formatter with the data structure, so that the pluggable formatter can serialize the data structure to a serialized stream in an externalized format defined by the pluggable formatter;
a serialization selector that selects between one of a user defined rule set defined in the object, a user defined rule set defined in another object and a default rule set for determining a serialization format for the object;
a formatter services component that receives a serialized stream of the object and instantiate an object type for deserialization of the decoded serialized stream; and
an object manager that manages the deserialization of objects by the pluggable formatter, the pluggable formatter providing the object manager with a decoded serialized stream;
wherein a processor operatively coupled to memory retains the decision module, the serialization selector, the formatter services component, and the object manager.
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
18 Claims
-
1. A system for serialization and deserialization of an object that facilitates employment of a pluggable formatter, comprising:
-
a decision module that retrieves an object from a graph of objects and determines a serialization format for the object based on user defined rules for that object type, the decision module populating a data structure based on the user defined rules and providing the pluggable formatter with the data structure, so that the pluggable formatter can serialize the data structure to a serialized stream in an externalized format defined by the pluggable formatter; a serialization selector that selects between one of a user defined rule set defined in the object, a user defined rule set defined in another object and a default rule set for determining a serialization format for the object; a formatter services component that receives a serialized stream of the object and instantiate an object type for deserialization of the decoded serialized stream; and an object manager that manages the deserialization of objects by the pluggable formatter, the pluggable formatter providing the object manager with a decoded serialized stream; wherein a processor operatively coupled to memory retains the decision module, the serialization selector, the formatter services component, and the object manager. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for serialization of a graph of objects into a stream, the method comprising:
-
retrieving an object from the graph of objects; assigning the object a unique identification number;
receiving a serial stream of the object;instantiating an object type for deserialization of the decoded serialized stream; selecting a serialization rule set based on the object type from one of a user defined rule set in the object, a user defined rule set in another object and a default rule set; pushing the object to a data structure and populating the data structure based on the selected serialization rule set; and serializing the data structure to an externalized format defined by a pluggable formatter. - View Dependent Claims (8, 9, 10)
-
-
11. A computer readable storage medium having computer executable components comprising:
-
a pluggable formatter component programmed to receive a data structure being populated with serialization information of an object of a graph of objects and serialize the object to an externalized format; a decision component programmed to retrieve an object and invoke a serialization selection component, the serialization selection component determining serialization information on the object, the serialization information being user definable in the object through one of methods defined in a serializable class, methods defined in a surrogate class provide by the user and markings provided in the object invoking a default serialization format; a formatter services component that receives the serialized stream of the object and instantiate an object type for deserialization of the serialized stream; and an object manager component programmed to manage the deserialization of objects by the pluggable formatter component. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18)
-
Specification