Class EnableSpringDataWebSupport.SpringDataWebConfigurationImportSelector
java.lang.Object
org.springframework.data.web.config.EnableSpringDataWebSupport.SpringDataWebConfigurationImportSelector
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.annotation.ImportSelector,org.springframework.context.ResourceLoaderAware
- Enclosing class:
- EnableSpringDataWebSupport
public static class EnableSpringDataWebSupport.SpringDataWebConfigurationImportSelector
extends Object
implements org.springframework.context.annotation.ImportSelector, org.springframework.context.ResourceLoaderAware
Import selector to import the appropriate configuration class depending on whether Spring HATEOAS is present on the
classpath. We need to register the HATEOAS specific class first as apparently only the first class implementing
WebMvcConfigurationSupport gets callbacks invoked (see
https://jira.springsource.org/browse/SPR-10565).- Author:
- Oliver Gierke, Jens Schauder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]selectImports(org.springframework.core.type.AnnotationMetadata importingClassMetadata) voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.annotation.ImportSelector
getExclusionFilter
-
Constructor Details
-
SpringDataWebConfigurationImportSelector
public SpringDataWebConfigurationImportSelector()
-
-
Method Details
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware
-
selectImports
public String[] selectImports(org.springframework.core.type.AnnotationMetadata importingClassMetadata) - Specified by:
selectImportsin interfaceorg.springframework.context.annotation.ImportSelector
-