Package dev.orne.i18n.spring
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 Summary
Fields inherited from class dev.orne.i18n.spring.I18nSpringConfiguration
DEFAULT_CONFIGURER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates the Spring listener for clearing the I18N context after handling the HTTP requests.Methods inherited from class dev.orne.i18n.spring.I18nSpringConfiguration
afterPropertiesSet, createContextProvider, determineConfigurer, getApplicationContext, getMessageSource, getTarget, setApplicationContext, setImportMetadata, setMessageSource, setTarget
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.orne.i18n.context.I18nContextProvider.Configurer
setI18nConfiguration, setI18nConfiguration, setI18nContextProvider, setI18nContextProvider
-
Field Details
-
CLEARER_BEAN_NAME
The I18N context clearer- See Also:
-
-
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.
-