Package pl.morgwai.base.servlet.guice.scopes
The main package for servlet and websocket scopes.
-
Class Summary Class Description ContainerCallContext Context of either anHttpServletRequest
or awebsocket event
.GuiceServerEndpointConfigurator ObtainsEndpoint
instances fromGuice
and decorates methods to run within websocket contexts.GuiceServletContextListener Creates and configuresapp-wide Guice Injector
and aServletModule
.HttpSessionContext Context of anHttpSession
.HttpSessionContext.SessionContextCreator Registered inGuiceServletContextListener
.RequestContextFilter Creates context for each newly incomingHttpServletRequest
and transfers context when requests aredispatched from AsyncContext
to new threads.ServletContextTrackingExecutor ATaskTrackingThreadPoolExecutor
that wraps tasks withContextBoundRunnable
decorator to automatically transfer contexts.ServletModule Contains servlet and websocket GuiceScope
s,ContextTracker
s and some helper methods.ServletRequestContext Context of aHttpServletRequest
.WebsocketConnectionContext Context of a websocket connection (Session
).WebsocketEventContext Context of a single websocket event such as a connection creation/closure, a message arrival or an error occurrence.