framework based di code example i highly discourage anybody from using hard coded strings in line the example in the last section of the page would be better if we added an static class to it that contains the strings static class provided by the framework or written by the user to indicate which dependencies are available public static class myavailableservices public static final string carbuilderservice carbuilderservice public static final string vanbuilderservice vanbuilderservice public class myapplication public static void main string args service service service dependencymanager get myavailableservices carbuilderservice car car car service getservice car class car setpedalpressure float speed car getspeedinmph