1. An apparatus for executing object-oriented code, said apparatus comprising: a computer with a runtime that interprets producer dependency declarations in the object-oriented code for methods in the object-oriented code, said producer dependency declarations identify at run time a set of zero or more producers, where a producer is a runtime instantiated construct, wherein each producer is instantiated from a respective combination of a particular instance of a class and a particular method of that class and identifies said particular instance and said particular method, wherein execution of a producer results in the method identified by that producer being executed on the instance identified by that producer, the runtime including, an automated producer graph generation module to receive a designation of a producer of interest, to add the producer of interest as part of a producer graph, and to automatically generate a remainder of the producer graph through linking, and instantiation as necessary, of other producers based on the producer dependency declarations of the methods identified by the producers already in the producer graph, and a producer graph execution module to execute the producers in the producer graph in the order indicated by the producer graph.