public.javadoc.org.spincast.plugins.routing.SpincastRouterDeps.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastRouterDeps (org.spincast:spincast-framework 1.13.0 API)
org.spincast.plugins.routing
Class SpincastRouterDeps<R extends RequestContext<?>,W extends WebsocketContext<?>>
- java.lang.Object
-
- org.spincast.plugins.routing.SpincastRouterDeps<R,W>
-
public class SpincastRouterDeps<R extends RequestContext<?>,W extends WebsocketContext<?>>
extends Object
A wrapper object for the dependencies required by SpincastRouter.
We inject this wrapper instead of injecting each individual dependency.
We do this because the SpincastRouter is made to be extended frequently
by developers and :
-
We want it to be easily extended without having to inject too many
dependencies in the child class.
-
We want to keep using constructor injection instead of setter and field
injection.
-
By using a wrapper, we can add new dependencies to SpincastRouter
without breaking the client classes.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastRouterDeps(SpincastRouterConfig spincastRouterConfig,
RouteFactory<R> routeFactory,
SpincastConfig spincastConfig,
Dictionary dictionary,
Server server,
SpincastFilters<R> spincastFilters,
RouteBuilderFactory<R,W> routeBuilderFactory,
RedirectRuleBuilderFactory<R,W> redirectRuleBuilderFactory,
StaticResourceBuilderFactory<R,W> staticResourceBuilderFactory,
RouteHandlerMatchFactory<R> routeHandlerMatchFactory,
StaticResourceFactory<R> staticResourceFactory,
WebsocketRouteBuilderFactory<R,W> websocketRouteBuilderFactory,
WebsocketRouteHandlerFactory<R,W> websocketRouteHandlerFactory,
SpincastRoutingUtils spincastRoutingUtils)
Constructor
-
Method Summary
-
-
Constructor Detail
-
SpincastRouterDeps
@Inject
public SpincastRouterDeps(SpincastRouterConfig spincastRouterConfig,
RouteFactory<R> routeFactory,
SpincastConfig spincastConfig,
Dictionary dictionary,
Server server,
SpincastFilters<R> spincastFilters,
RouteBuilderFactory<R,W> routeBuilderFactory,
RedirectRuleBuilderFactory<R,W> redirectRuleBuilderFactory,
StaticResourceBuilderFactory<R,W> staticResourceBuilderFactory,
RouteHandlerMatchFactory<R> routeHandlerMatchFactory,
StaticResourceFactory<R> staticResourceFactory,
WebsocketRouteBuilderFactory<R,W> websocketRouteBuilderFactory,
WebsocketRouteHandlerFactory<R,W> websocketRouteHandlerFactory,
SpincastRoutingUtils spincastRoutingUtils)
Constructor
-
Method Detail
-
getRouteHandlerMatchFactory
public RouteHandlerMatchFactory<R> getRouteHandlerMatchFactory()
-
getRouteBuilderFactory
public RouteBuilderFactory<R,W> getRouteBuilderFactory()
-
getRedirectRuleBuilderFactory
public RedirectRuleBuilderFactory<R,W> getRedirectRuleBuilderFactory()
-
getStaticResourceBuilderFactory
public StaticResourceBuilderFactory<R,W> getStaticResourceBuilderFactory()
-
getStaticResourceFactory
public StaticResourceFactory<R> getStaticResourceFactory()
-
getSpincastRouterConfig
public SpincastRouterConfig getSpincastRouterConfig()
-
getRouteFactory
public RouteFactory<R> getRouteFactory()
-
getSpincastConfig
public SpincastConfig getSpincastConfig()
-
getDictionary
public Dictionary getDictionary()
-
getSpincastFilters
public SpincastFilters<R> getSpincastFilters()
-
getWebsocketRouteBuilderFactory
public WebsocketRouteBuilderFactory<R,W> getWebsocketRouteBuilderFactory()
-
getWebsocketRouteHandlerFactory
public WebsocketRouteHandlerFactory<R,W> getWebsocketRouteHandlerFactory()
-
getServer
public Server getServer()
-
getSpincastRoutingUtils
public SpincastRoutingUtils getSpincastRoutingUtils()
Copyright © 2019. All rights reserved.