Method and apparatus for extending operations of an application in a data processing system
AssigneeInternational Business Machines Corporation
InventorsDaniel Christopher Berg, Charles Dyer Bridgham, Derek Francis Holt, Ritchard Leonard Schacher, Jason Ashley Sholl
Life of this patent
Estimating the term…
Abstract
A method, an apparatus, and computer instructions are provided for extending operations of an application in a data processing system. A primary operation is executed. All extended operations of the primary operation are cached and pre and post operation identifiers are identified. For each pre operation identifier, a pre operation instance is created and executed. For each post operation identifier, a post operation instance is created and executed.
Claims3
1-20. (canceled)
A data processing system comprising:
- a bus;
- a memory connected to the bus, wherein a set of instructions are located in the memory;
- and
- a processor connected to the bus, wherein the processor executes the set of instructions to:
- responsive to running a primary operation, identify all pre and post operations based on predefined metadata and an environment context of the application, wherein the processor executes the set of instructions to identify by:
- responsive to running the primary operation, determining if a cycle is present in an execution path of the primary operation;
- if no cycle is present, populating an extended operation cache with cached extended operation identifiers, wherein populating comprises:
- reading a plurality of operation extensions for a given primary operation identifier;
- determining if each corresponding operation extension in the plurality of operation extensions defines a corresponding at least one of a pre or post operation identifier;
- associating the corresponding at least one of pre or post operation identifier with a corresponding function group identifier;
- for each corresponding operation extension in the plurality of operation extensions, creating a corresponding primary operation record for each operation extension, and
- placing the corresponding primary operation record in the extended operation cache;
- and wherein the processor further executes the set of instructions to identify by:
- identifying a plurality of pre operation identifiers and post operation identifiers from the cached extended operation identifiers;
- and wherein the processor further executes the set of instructions to:
- recursively run all pre operations in a predefined order;
- execute the primary operation;
- and
- recursively run all post operations in a predefined order.
A recordable-type medium containing instructions for extending operations of an application, the instructions comprising:
- first instructions for identifying all pre and post operations based on predefined metadata and an environment context of the application responsive to running a primary operation, wherein the first instructions for identifying comprise:
- first sub instructions for, responsive to running the primary operation, determining if a cycle is present in an execution path of the primary operation;
- second sub instructions for, if no cycle is present, populating an extended operation cache with cached extended operation identifiers, wherein the second sub instructions for populating comprise:
- first additional instructions for reading a plurality of operation extensions for a given primary operation identifier;
- second additional instructions for determining if each corresponding operation extension in the plurality of operation extensions defines a corresponding at least one of a pre or post operation identifier;
- third additional instructions for associating the corresponding at least one of the pre or post operation identifier with a corresponding function group identifier;
- fourth additional instructions for, for each corresponding operation extension in the plurality of operation extensions, creating a corresponding primary operation record for each operation extension, and
- fifth additional instructions for placing the corresponding primary operation record in the extended operation cache;
- and wherein identifying further comprises:
- third sub instructions for identifying a plurality of pre operation identifiers and post operation identifiers from the cached extended operation identifiers;
- and wherein the computer program product further comprises:
- second instructions for recursively running all pre operations in a predefined order;
- third instructions for executing the primary operation;
- and
- fourth instructions for recursively running all post operations in a predefined order.
Dependencies are inferred from the claim text.