controllers
Class InjectionExampleController

java.lang.Object
  extended by controllers.InjectionExampleController

public class InjectionExampleController
extends Object

This class demonstrates how easy it is to inject any guice services into a controller. In this case we are injecting a simple GreetingService that can say hello...

Author:
ra

Constructor Summary
InjectionExampleController(GreetingService greeter)
           
 
Method Summary
 Result injection(Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectionExampleController

@Inject
public InjectionExampleController(GreetingService greeter)
Method Detail

injection

public Result injection(Context context)


Copyright © 2012. All Rights Reserved.