Package org.spincast.plugins.routing
Class SpincastRoutingPluginModule
java.lang.Object
com.google.inject.AbstractModule
org.spincast.core.guice.SpincastGuiceModuleBase
org.spincast.plugins.routing.SpincastRoutingPluginModule
- All Implemented Interfaces:
com.google.inject.Module
,SpincastContextTypesInterested
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpincastRoutingPluginModule
(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass) SpincastRoutingPluginModule
(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass, Class<? extends Router<?, ?>> specificRouterImplementationClass) SpincastRoutingPluginModule
(Class<? extends Router<?, ?>> specificRouterImplementationClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected Class<? extends ETagFactory>
protected Class<? extends RedirectRuleBuilder>
protected Class<? extends RouteBuilder>
protected Class<? extends RouteHandlerMatch>
protected com.google.inject.Key<?>
protected com.google.inject.Key<?>
protected Class<? extends SpincastRoutingUtils>
protected Class<? extends StaticResourceBuilder>
protected Class<? extends StaticResourceCacheConfig>
protected Class<? extends StaticResourceCorsConfig>
protected com.google.inject.Key<?>
protected Class<? extends WebsocketRouteBuilder>
protected com.google.inject.Key<?>
protected void
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
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
SpincastRoutingPluginModule
public SpincastRoutingPluginModule() -
SpincastRoutingPluginModule
-
SpincastRoutingPluginModule
public SpincastRoutingPluginModule(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass) -
SpincastRoutingPluginModule
public SpincastRoutingPluginModule(Class<? extends RequestContext<?>> requestContextImplementationClass, Class<? extends WebsocketContext<?>> websocketContextImplementationClass, Class<? extends Router<?, ?>> specificRouterImplementationClass)
-
-
Method Details
-
getSpecificRouterImplementationClass
-
configure
protected void configure()- Specified by:
configure
in classSpincastGuiceModuleBase
-
validateRequirements
protected void validateRequirements() -
getRouterImplementationKey
protected com.google.inject.Key<?> getRouterImplementationKey() -
getRouteKey
protected com.google.inject.Key<?> getRouteKey() -
getWebsocketRouteKey
protected com.google.inject.Key<?> getWebsocketRouteKey() -
getStaticResourceKey
protected com.google.inject.Key<?> getStaticResourceKey() -
bindRouter
protected void bindRouter() -
bindRouteFactory
protected void bindRouteFactory() -
bindWebsocketRouteFactory
protected void bindWebsocketRouteFactory() -
bindRouteBuilderFactory
protected void bindRouteBuilderFactory() -
getRouteBuilderImplClass
-
bindRedirectRuleBuilderFactory
protected void bindRedirectRuleBuilderFactory() -
getRedirectRuleBuilderImplClass
-
bindWebsocketRouteBuilderFactory
protected void bindWebsocketRouteBuilderFactory() -
getWebsocketRouteBuilderImplClass
-
bindWebsocketRouteHandlerFactory
protected void bindWebsocketRouteHandlerFactory() -
getWebsocketRouteHandlerImplClass
-
bindRouteHandlerMatchFactory
protected void bindRouteHandlerMatchFactory() -
getRouteHandlerMatchImplClass
-
bindStaticResourceFactory
protected void bindStaticResourceFactory() -
bindStaticResourceBuilderFactory
protected void bindStaticResourceBuilderFactory() -
getStaticResourceBuilderImplClass
-
bindStaticResourceCorsConfigFactory
protected void bindStaticResourceCorsConfigFactory() -
getStaticResourceCorsConfigImplClass
-
bindStaticResourceCacheConfigFactory
protected void bindStaticResourceCacheConfigFactory() -
getStaticResourceCacheConfigImplClass
-
bindStaticResourceHotlinkingManager
protected void bindStaticResourceHotlinkingManager() -
bindRequestContextAddon
protected void bindRequestContextAddon() -
bindETagFactory
protected void bindETagFactory() -
getETagFactoryImplClass
-
bindSpincastRoutingUtils
protected void bindSpincastRoutingUtils() -
getSpincastRoutingUtilsImplClass
-