Class SpincastDateFormatterPluginModule
java.lang.Object
com.google.inject.AbstractModule
org.spincast.core.guice.SpincastGuiceModuleBase
org.spincast.plugins.dateformatter.SpincastDateFormatterPluginModule
- All Implemented Interfaces:
com.google.inject.Module
,SpincastContextTypesInterested
Spincast Date Formatter plugin module.
-
Constructor Summary
ConstructorDescriptionSpincastDateFormatterPluginModule
(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected Class<? extends RelativeDateFormatter>
protected Class<? extends DateFormatter>
protected Class<? extends SpincastDateFormatterPebbleExtension>
protected boolean
Methods inherited from class org.spincast.core.guice.SpincastGuiceModuleBase
getRequestContextImplementationClass, getRequestContextInterface, getWebsocketContextImplementationClass, getWebsocketContextInterface, install, parameterizeWithContextInterfaces, parameterizeWithRequestContext, parameterizeWithWebsocketContext, setRequestContextImplementationClass, setWebsocketContextImplementationClass
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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
SpincastDateFormatterPluginModule
public SpincastDateFormatterPluginModule() -
SpincastDateFormatterPluginModule
public SpincastDateFormatterPluginModule(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass)
-
-
Method Details
-
configure
protected void configure()- Specified by:
configure
in classSpincastGuiceModuleBase
-
isPebbleAvailable
protected boolean isPebbleAvailable() -
bindDateFormatterFactory
protected void bindDateFormatterFactory() -
getDateFormatterImplClass
-
getDateFormatterAgoImplClass
-
bindPebbleExtension
protected void bindPebbleExtension() -
getPebbleExtensionImplClass
-