ninja.template
Class TemplateEngineManagerImpl

java.lang.Object
  extended by ninja.template.TemplateEngineManagerImpl
All Implemented Interfaces:
TemplateEngineManager

public class TemplateEngineManagerImpl
extends Object
implements TemplateEngineManager


Constructor Summary
TemplateEngineManagerImpl(com.google.inject.Provider<TemplateEngineFreemarker> templateEngineFreemarker, com.google.inject.Provider<TemplateEngineJsonGson> templateEngineJsonGson, com.google.inject.Injector injector)
           
 
Method Summary
 TemplateEngine getTemplateEngineForContentType(String contentType)
          Find the template engine for the given content type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateEngineManagerImpl

@Inject
public TemplateEngineManagerImpl(com.google.inject.Provider<TemplateEngineFreemarker> templateEngineFreemarker,
                                        com.google.inject.Provider<TemplateEngineJsonGson> templateEngineJsonGson,
                                        com.google.inject.Injector injector)
Method Detail

getTemplateEngineForContentType

public TemplateEngine getTemplateEngineForContentType(String contentType)
Description copied from interface: TemplateEngineManager
Find the template engine for the given content type

Specified by:
getTemplateEngineForContentType in interface TemplateEngineManager
Parameters:
contentType - The content type
Returns:
The template engine, if found


Copyright © 2012. All Rights Reserved.