Class Main


  • public class Main
    extends java.lang.Object
    The calls to sayHello from main should all throw NullPointerException, since no GreetingService has been injected into any of these objects. In this demo, we are using (abusing actually) JUnit as the DI framework, so we need to run the controllers from a JUnit test and not from here.
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)