Package de.dlr.proseo.ui.gui
Class GUIConfiguration
java.lang.Object
de.dlr.proseo.ui.gui.GUIConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@ConfigurationProperties(prefix="proseo")
@EntityScan(basePackages="de.dlr.proseo.model")
public class GUIConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configuration properties and beans related to the GUI (Graphical User Interface) of an application, used to configure various
aspects of the GUI, such as the base URIs for different services and components, timeout settings, and localization.
- Author:
- David Mazo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) Adds the locale change interceptor to the interceptor registry.Gets the Grafana base URI.Gets the Order Manager base URI.Gets the Processor Manager base URI.Gets the Production Planner base URI.Gets the timeout for asynchronous requests in milliseconds.(package private) org.springframework.web.servlet.i18n.LocaleChangeInterceptorCreates a locale change interceptor bean for handling language change.(package private) org.springframework.web.servlet.LocaleResolverCreates a locale resolver bean for handling localization.Methods 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, addErrorResponseInterceptors, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
GUIConfiguration
public GUIConfiguration()
-
-
Method Details
-
getTimeout
Gets the timeout for asynchronous requests in milliseconds.- Returns:
- the timeout in milliseconds
-
getProductionPlanner
Gets the Production Planner base URI.- Returns:
- the Production Planner URI
-
getOrderManager
Gets the Order Manager base URI.- Returns:
- the Order Manager URI
-
getProcessorManager
Gets the Processor Manager base URI.- Returns:
- the Processor Manager URI
-
getGrafana
Gets the Grafana base URI.- Returns:
- the Grafana URI
-
localeResolver
@Bean org.springframework.web.servlet.LocaleResolver localeResolver()Creates a locale resolver bean for handling localization.- Returns:
- the locale resolver bean
-
localChangeInterceptor
@Bean org.springframework.web.servlet.i18n.LocaleChangeInterceptor localChangeInterceptor()Creates a locale change interceptor bean for handling language change.- Returns:
- the locale change interceptor bean
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) Adds the locale change interceptor to the interceptor registry.- Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Parameters:
registry- the interceptor registry
-