Class I18nSpringWebConfiguration

java.lang.Object
dev.orne.i18n.spring.I18nSpringConfiguration
dev.orne.i18n.spring.I18nSpringWebConfiguration
All Implemented Interfaces:
I18nContextProvider.Configurer, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.annotation.ImportAware, org.springframework.context.ApplicationContextAware, org.springframework.context.MessageSourceAware

@API(status=STABLE, since="0.1") @Configuration public class I18nSpringWebConfiguration extends I18nSpringConfiguration
I18N context provider configuration for Spring Web. Configures a listener for clearing I18N context after handling the HTTP requests.
Since:
0.1
Version:
1.0, 2023-05
Author:
(w) Iker Hernaez
See Also:
  • Field Details

  • Constructor Details

    • I18nSpringWebConfiguration

      public I18nSpringWebConfiguration()
      Creates a new instance.
  • Method Details

    • orneBeansI18nContextClearer

      @Bean(name="i18nSpringWebContextCleaner") public I18nSpringWebContextClearer orneBeansI18nContextClearer()
      Creates the Spring listener for clearing the I18N context after handling the HTTP requests.
      Returns:
      The Spring listener.