Class FreemarkerModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.freemarker.FreemarkerModule
- All Implemented Interfaces:
com.google.inject.Module
public class FreemarkerModule
extends com.google.inject.AbstractModule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createFreemarker
(javax.servlet.ServletContext context, FreemarkerURLHelper urlHelper, GuiceConfig configuration) createURLHelper
(URI restEndpoint, URI webappEndpoint, String restPrefix, GuiceConfig configuration) Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
FreemarkerModule
public FreemarkerModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
createFreemarker
@Provides public FreemarkerTemplater createFreemarker(javax.servlet.ServletContext context, FreemarkerURLHelper urlHelper, GuiceConfig configuration) -
createURLHelper
@Provides public FreemarkerURLHelper createURLHelper(URI restEndpoint, URI webappEndpoint, String restPrefix, GuiceConfig configuration)
-