package com.wpollock.manualdidemo; public class ConstructorInjectedController { public GreetingService greetingService; public ConstructorInjectedController(GreetingService greetingService) { this.greetingService = greetingService; } public void sayHello () { greetingService.greet(); } public GreetingService getGreetingService() { return greetingService; } }