A C E G I J M P R S
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addEndpoint(Class<?>, String) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaPingingServletContextListener
-
Adds an endpoint using a
JpaPingingServletContextListener.JpaPingingEndpointConfigurator
.
C
- containerCallContextTracker - Variable in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
- contextDestroyed(ServletContextEvent) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaPingingServletContextListener
-
Stops the associated
WebsocketPingerService
. - contextDestroyed(ServletContextEvent) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Shuts down the main
EntityManagerFactory
andJpaServletContextListener.mainJpaExecutor
. - createInjector(LinkedList<Module>) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Creates injector with an additional module that binds injections of
EntityManagerFactory
,JpaServletContextListener.mainJpaExecutor
andEntityManager
s ofthe main persistence unit
. - createJpaExecutor(String, int) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Creates an executor to be associated with a persistence unit.
E
- entityManagerProvider - Variable in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
-
Provides request scoped
EntityManager
instances. - executeWithinTx(Provider<EntityManager>, Callable<T>) - Static method in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
-
Executes
operation
within the DB transaction obtained fromentityManagerProvider
. - executeWithinTx(Callable<T>) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
-
Executes
operation
within the DB transaction obtained fromJpaServlet.entityManagerProvider
.
G
- getAdditionalDecorator(Object) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaPingingServletContextListener.JpaPingingEndpointConfigurator
- getAsyncContextTimeout() - Method in class pl.morgwai.base.servlet.guiced.jpa.SimpleAsyncJpaServlet
-
Returns timeout for
AsyncContext.setTimeout(long)
; Negative number indicates thatAsyncContext.setTimeout(long)
should not be called in which case container default will take effect. - getMainJpaThreadPoolSize() - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Returns the size of the thread pool to be used by
JpaServletContextListener.mainJpaExecutor
. - getMainPersistenceUnitName() - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Returns the name of the main persistence unit in
persistence.xml
file. - getMaxMalformedPongCount() - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaPingingServletContextListener
-
Allows subclasses to override maximum allowed malformed pongs.
- getPersistenceUnitBindingName() - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
-
Returns injection binding name for
JpaServlet.entityManagerProvider
andJpaServlet.jpaExecutor
in apps that use multiple persistence units. - getPingIntervalSeconds() - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaPingingServletContextListener
-
Allows subclasses to override ping interval.
I
- init(ServletConfig) - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
-
Requests instances of
JpaServlet.entityManagerProvider
andJpaServlet.jpaExecutor
from Guice. - isSinglePersistenceUnitApp() - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Indicates whether this app uses only 1 persistence unit.
J
- JPA_EXECUTOR_NAME_SUFFIX - Static variable in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Appended to persistence unit name to create associated executor name.
- jpaExecutor - Variable in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
-
Executor associated with
JpaServlet.entityManagerProvider
's persistence unit. - JpaPingingEndpointConfigurator() - Constructor for class pl.morgwai.base.servlet.guiced.jpa.JpaPingingServletContextListener.JpaPingingEndpointConfigurator
- JpaPingingServletContextListener - Class in pl.morgwai.base.servlet.guiced.jpa
-
A
JpaServletContextListener
that automatically registers/deregisters endpoint instances to aWebsocketPingerService
. - JpaPingingServletContextListener() - Constructor for class pl.morgwai.base.servlet.guiced.jpa.JpaPingingServletContextListener
- JpaPingingServletContextListener.JpaPingingEndpointConfigurator - Class in pl.morgwai.base.servlet.guiced.jpa
-
Automatically registers and deregisters created endpoints to the
WebsocketPingerService
of theJpaPingingServletContextListener
. - JpaServlet - Class in pl.morgwai.base.servlet.guiced.jpa
-
Base class for servlets that perform other types of time consuming operations apart from JPA.
- JpaServlet() - Constructor for class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
- JpaServletContextListener - Class in pl.morgwai.base.servlet.guiced.jpa
-
Manages the lifecycle of
the main persistent unit
and its associatedexecutor
. - JpaServletContextListener() - Constructor for class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
M
- MAIN_PERSISTENCE_UNIT_BINDING_NAME - Static variable in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Injection binding name for
the main persistence unit
associated objects in apps that use multiple persistence units. - mainJpaExecutor - Variable in class pl.morgwai.base.servlet.guiced.jpa.JpaServletContextListener
-
Executor associated with
the main persistence unit
.
P
- pl.morgwai.base.servlet.guiced.jpa - package pl.morgwai.base.servlet.guiced.jpa
R
- removeEntityManagerFromRequestScope() - Method in class pl.morgwai.base.servlet.guiced.jpa.JpaServlet
-
Removes the stored
EntityManager
from the scope of the current request.
S
- service(HttpServletRequest, HttpServletResponse) - Method in class pl.morgwai.base.servlet.guiced.jpa.SimpleAsyncJpaServlet
-
Dispatches request handling to
JpaServlet.jpaExecutor
. - shouldCallAsyncContextComplete(HttpServletRequest) - Method in class pl.morgwai.base.servlet.guiced.jpa.SimpleAsyncJpaServlet
-
Whether
AsyncContext.complete()
should be called automatically at the end of request processing. - SimpleAsyncJpaServlet - Class in pl.morgwai.base.servlet.guiced.jpa
-
Dispatches request handling to
the executor
associated with the configured persistence unit. - SimpleAsyncJpaServlet() - Constructor for class pl.morgwai.base.servlet.guiced.jpa.SimpleAsyncJpaServlet
- startAsync(HttpServletRequest, HttpServletResponse) - Method in class pl.morgwai.base.servlet.guiced.jpa.SimpleAsyncJpaServlet
-
Starts
AsyncContext
.
All Classes All Packages