Package ninja.template
Class TemplateEngineManagerImpl
- java.lang.Object
-
- ninja.template.TemplateEngineManagerImpl
-
- All Implemented Interfaces:
TemplateEngineManager
public class TemplateEngineManagerImpl extends Object implements TemplateEngineManager
-
-
Constructor Summary
Constructors Constructor Description TemplateEngineManagerImpl(com.google.inject.Injector injector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getContentTypes()
Returns a set of the registered template engine content types.TemplateEngine
getTemplateEngineForContentType(String contentType)
Find the template engine for the given content typeprotected void
logTemplateEngines()
-
-
-
Method Detail
-
getContentTypes
public Set<String> getContentTypes()
Description copied from interface:TemplateEngineManager
Returns a set of the registered template engine content types.- Specified by:
getContentTypes
in interfaceTemplateEngineManager
- Returns:
- the registered content types
-
getTemplateEngineForContentType
public TemplateEngine getTemplateEngineForContentType(String contentType)
Description copied from interface:TemplateEngineManager
Find the template engine for the given content type- Specified by:
getTemplateEngineForContentType
in interfaceTemplateEngineManager
- Parameters:
contentType
- The content type- Returns:
- The template engine, if found
-
logTemplateEngines
protected final void logTemplateEngines()
-
-