Patent ID: 7849451

Claim:
A method comprising: assembling a delegation chain of a plurality of executor objects for serially adapting a code unit to an environment comprising a plurality of aspects, at runtime, wherein the plurality of executor objects are capable of rejecting the code unit based on one or more of the plurality of executor objects, wherein the plurality of executor objects are configured to customize the code unit, wherein the environment hosts asynchronous concurrent tasks, and wherein assembling comprises customizing at least one of code and configuration data of a first executor object code that causes the first executor object to submit the code unit to a second executor object of the plurality of executor objects before executing the code unit; dynamically adapting the code unit to the environment, at runtime, using the delegation chain, to serially delegate execution of the code unit, by: submitting, by each executor object of the plurality of executor objects and based on one of the plurality of aspects implemented by each executor object, the code unit to a next executor object of the delegation chain; and executing, after dynamically adapting, the code unit as an isolated computation directly by a privileged system executor object of the plurality of executor objects when the code unit is allowed by the plurality of executor objects in accordance with a current runtime state of the environment, wherein each of the plurality of aspects refer to a feature or element of a program executing in the environment that is a cross-cutting concern or a core concern.