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.TemplateEnginegetTemplateEngineForContentType(String contentType)Find the template engine for the given content typeprotected voidlogTemplateEngines()
-
-
-
Method Detail
-
getContentTypes
public Set<String> getContentTypes()
Description copied from interface:TemplateEngineManagerReturns a set of the registered template engine content types.- Specified by:
getContentTypesin interfaceTemplateEngineManager- Returns:
- the registered content types
-
getTemplateEngineForContentType
public TemplateEngine getTemplateEngineForContentType(String contentType)
Description copied from interface:TemplateEngineManagerFind the template engine for the given content type- Specified by:
getTemplateEngineForContentTypein interfaceTemplateEngineManager- Parameters:
contentType- The content type- Returns:
- The template engine, if found
-
logTemplateEngines
protected final void logTemplateEngines()
-
-