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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) intgetOrder()org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getOrderin interfaceorg.springframework.core.Ordered
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
openEntityManagerInViewInterceptor
@Bean public org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor openEntityManagerInViewInterceptor()
-