Class JpaPersistenceContextInViewConfiguration.OpenEntityManagerInViewInterceptorConfiguration
java.lang.Object
com.foreach.across.modules.hibernate.extensions.JpaPersistenceContextInViewConfiguration.OpenEntityManagerInViewInterceptorConfiguration
- All Implemented Interfaces:
org.springframework.core.Ordered
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Enclosing class:
- JpaPersistenceContextInViewConfiguration
@Configuration
@ConditionalOnExpression("true == @moduleSettings.openInView and @moduleSettings.persistenceContextInView.handler.name() == \'INTERCEPTOR\'")
public static class JpaPersistenceContextInViewConfiguration.OpenEntityManagerInViewInterceptorConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.core.Ordered
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterceptors
(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) int
getOrder()
org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
OpenEntityManagerInViewInterceptorConfiguration
public OpenEntityManagerInViewInterceptorConfiguration()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptors
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
openEntityManagerInViewInterceptor
@Bean public org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor openEntityManagerInViewInterceptor()
-