framework based code example highly discourage anybody using hard coded strings line example last section page would better added static class contains strings static class provided framework written user indicate dependencies 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