System and method for descriptor classes
First Claim
1. A computer-implemented system stored on a computer readable medium to provide a descriptor class framework, comprising:
- a descriptor capable of representing modifiable configuration data of a software component in persistent data;
one or more descriptor classes, wherein each of the one or more descriptor classes is capable of maintaining one or more properties corresponding to a portion of the descriptor;
a descriptor class management component capable of;
generating and/or updating the one or more descriptor classes from the descriptor; and
generating and/or updating the descriptor from the one or more descriptor classes; and
a listener registered with the descriptor class capable of;
accepting notification of a proposed change to the descriptor from the descriptor class management component;
determining whether to update the descriptor class with the proposed change; and
updating the descriptor class with the proposed change,wherein each of the one or more descriptor classes can further comprise;
an annotation capable of;
defining one of the one or more properties; and
defining a getting and/or setting method of one of the one or more properties;
a validator capable of validating the one or more properties based on one or more constraints either at parse time or whenever the descriptor class is modified; and
a customizer capable of implementing and/or extending the implementation of a software interface with a custom logic inserted in the descriptor class; and
generating and/or updating the descriptor class via the following implementations;
a runtime implementation, which is read-only and optimized for efficiency at runtime; and
a edit time implementation, which is modifiable maintains in an XML document.
2 Assignments
0 Petitions
Accused Products
Abstract
A descriptor class framework fully support a “start-from-class” approach, which defines a descriptor via a set of programmable classes defined in an object-oriented programming language. While the persistent form of a descriptor of a deployed software component is a file, the developer of an application using software component may view the descriptor as a set of programmable descriptor classes. A set of classes can be generated from a descriptor based on a set of construction rules and vise versa. Each class can be annotated, validated and customized. The descriptor class framework is also capable of determining the differences between two versions of a descriptor and notifying the changes to a corresponding class via events to a listener registered with the class.
31 Citations
14 Claims
-
1. A computer-implemented system stored on a computer readable medium to provide a descriptor class framework, comprising:
-
a descriptor capable of representing modifiable configuration data of a software component in persistent data; one or more descriptor classes, wherein each of the one or more descriptor classes is capable of maintaining one or more properties corresponding to a portion of the descriptor; a descriptor class management component capable of; generating and/or updating the one or more descriptor classes from the descriptor; and generating and/or updating the descriptor from the one or more descriptor classes; and a listener registered with the descriptor class capable of; accepting notification of a proposed change to the descriptor from the descriptor class management component; determining whether to update the descriptor class with the proposed change; and updating the descriptor class with the proposed change, wherein each of the one or more descriptor classes can further comprise; an annotation capable of; defining one of the one or more properties; and defining a getting and/or setting method of one of the one or more properties; a validator capable of validating the one or more properties based on one or more constraints either at parse time or whenever the descriptor class is modified; and a customizer capable of implementing and/or extending the implementation of a software interface with a custom logic inserted in the descriptor class; and generating and/or updating the descriptor class via the following implementations; a runtime implementation, which is read-only and optimized for efficiency at runtime; and a edit time implementation, which is modifiable maintains in an XML document. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-implemented method to provide a descriptor class framework, comprising:
-
representing modifiable configuration data of a software component via a descriptor in a persistent file; containing one or more descriptor classes in a hierarchical structure via a descriptor class set, wherein a descriptor class of the one or more descriptor classes can be defined by an object-oriented programming language and is capable of maintaining one or more properties corresponding to a portion of the descriptor; performing the following via a descriptor class management component; generating and/or updating the hierarchical structure of the one or more descriptor classes from the descriptor; and generating and/or updating the descriptor from the hierarchical structure of the one or more descriptor classes; performing the following via a listener registered with the descriptor class; accepting notification of a proposed change to the descriptor from the descriptor class management component; determining whether to update the descriptor class with the proposed change; and updating the descriptor class with the proposed change; defining one of the one or more properties via an annotation in the descriptor class; defining a getting and/or setting method of one of the one or more properties via an annotation in the descriptor class; validating the one or more properties based on one or more constraints either at parse time or whenever the descriptor class is modified; implementing and/or extending the implementation of a software interface with a custom logic inserted in the descriptor class; and generating and/or updating the descriptor class via the following implementations; a runtime implementation, which is read-only and optimized for efficiency at runtime; and a edit time implementation, which is modifiable maintains in an XML document. - View Dependent Claims (10, 11, 12)
-
-
13. A machine readable medium having instructions stored thereon that when executed cause a system to:
-
represent modifiable configuration data of a software component as an XML file; contain one or more descriptor classes in a tree structure via a descriptor class graph and/or tree, wherein a descriptor class of the one or more descriptor classes is a software interface capable of maintaining one or more properties corresponding to an XML schema in the XML file in the descriptor; perform the following via a descriptor class management component; generating and/or updating the descriptor class graph and/or tree from the descriptor via generating and/or updating the interface from the XML schema; and generating and/or updating the descriptor from the descriptor class graph and/or tree via generating and/or updating the XML schema from the interface; perform the following via a listener registered with the descriptor class; accepting notification of a proposed change to the descriptor from the descriptor class management component; determining whether to update the descriptor class with the proposed change; and updating the descriptor class with the proposed change; define one of the one or more properties via an annotation in the descriptor class; define a getting and/or setting method of one of the one or more properties via an annotation in the descriptor class; validate the one or more properties based on one or more constraints either at parse time or whenever the descriptor class is modified; implement and/or extending the implementation of a software interface with a custom logic inserted in the descriptor class; and generate and/or updating the descriptor class via the following implementations; a runtime implementation, which is read-only and optimized for efficiency at runtime; and a edit time implementation, which is modifiable maintains in an XML document.
-
-
14. A computer-implemented system stored on a computer readable medium to provide a descriptor object framework, comprising:
-
means for representing modifiable configuration data of a software component via a descriptor in persistent data; means for performing the following via a descriptor class management component; generating and/or updating one or more descriptor classes from the descriptor, wherein each of the one or more descriptor classes is capable of maintaining one or more properties corresponding to a portion of the descriptor; and generating and/or updating the descriptor from the one or more descriptor classes; means for performing the following via a listener registered with the descriptor class; accepting notification of a proposed change to the descriptor from the descriptor class management component; determining whether to update the descriptor class with the proposed change; and updating the descriptor class with the proposed change; means for defining one of the one or more properties via an annotation in the descriptor class; means for defining a getting and/or setting method of one of the one or more properties via an annotation in the descriptor class; means for validating the one or more properties based on one or more constraints either at parse time or whenever the descriptor class is modified; means for implementing and/or extending the implementation of a software interface with a custom logic inserted in the descriptor class; and means for generating and/or updating the descriptor class via the following implementations; a runtime implementation, which is read-only and optimized for efficiency at runtime; and a edit time implementation, which is modifiable maintains in an XML document.
-
Specification