Package dev.orne.i18n.spring
Class I18nSpringConfigurationSelector
java.lang.Object
dev.orne.i18n.spring.I18nSpringConfigurationSelector
- All Implemented Interfaces:
org.springframework.context.annotation.ImportSelector
@API(status=STABLE,
since="0.1")
@Configuration
public class I18nSpringConfigurationSelector
extends Object
implements org.springframework.context.annotation.ImportSelector
Selector of Spring configuration based on presence of
spring-web
on the classpath.- Since:
- 0.1
- Version:
- 1.0, 2023-05
- Author:
- (w) Iker Hernaez
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
selectImports
(org.springframework.core.type.AnnotationMetadata importingClassMetadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.annotation.ImportSelector
getExclusionFilter
-
Field Details
-
SPRING_WEB_DETECTOR
Class to use detectspring-web
.- See Also:
-
-
Constructor Details
-
I18nSpringConfigurationSelector
public I18nSpringConfigurationSelector()Creates a new instance.
-
-
Method Details
-
selectImports
public String[] selectImports(org.springframework.core.type.AnnotationMetadata importingClassMetadata) Loads
I18nSpringWebContextCleaner
ifspring-web
is on the classpth.I18nSpringBaseConfigurer
otherwise. .- Specified by:
selectImports
in interfaceorg.springframework.context.annotation.ImportSelector
-