Attribute-Based Component Programming System and Methodology for Object-Oriented Languages
First Claim
1. A method for dynamically generating program code adding behavior to a program based on attributes, the method comprising:
- adding a component object to a program class of the program to create a component;
defining at least one attribute specifying declaratively behavior to be added to the program;
associating said at least one attribute with the component; and
in response to instantiation of the component at runtime, generating a subclass based on the program class and said at least one attribute, the subclass including dynamically generated program code based on said at least one attribute.
1 Assignment
0 Petitions
Accused Products
Abstract
An attribute-based component programming system and methodology for object-oriented languages is described. In one embodiment, for example, a method is described for dynamically generating program code adding behavior to a program based on attributes, the method comprises steps of: adding a component object to a program class of the program to create a component; defining at least one attribute specifying declaratively behavior to be added to the program; associating the at least one attribute with the component; and in response to instantiation of the component at runtime, generating a subclass based on the program class and the at least one attribute, the subclass including dynamically generated program code based on the at least one attribute.
-
Citations
61 Claims
-
1. A method for dynamically generating program code adding behavior to a program based on attributes, the method comprising:
-
adding a component object to a program class of the program to create a component;
defining at least one attribute specifying declaratively behavior to be added to the program;
associating said at least one attribute with the component; and
in response to instantiation of the component at runtime, generating a subclass based on the program class and said at least one attribute, the subclass including dynamically generated program code based on said at least one attribute. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25)
-
-
26. A system for dynamically generating program code based on declarative attributes, the system comprising:
-
a component module for creating a component from a program class based on adding a component object to the program class;
an attribute module for defining at least one declarative attribute specifying behavior to be added to the program class and associating said at least one attribute with the component; and
a module for generating a subclass of the program class in response to instantiation of the component, the subclass including dynamically generated program code based on said at least one declarative attribute. - View Dependent Claims (27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46)
-
-
47. A method for adding behavior to an application without access to application source code, the method comprising:
-
defining at least one attribute specifying declaratively behavior which is desired to be added to an application without access to the application source code;
storing said at least one attribute in a properties file external to the application;
creating a dynamic attributes class based on the properties file;
compiling the application and the dynamic attributes class; and
generating a subclass which includes dynamically generated code adding behavior to application based on said at least one attribute. - View Dependent Claims (48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61)
-
Specification