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 Details

    • SpringDataWebConfigurationImportSelector

      public SpringDataWebConfigurationImportSelector()
  • Method Details

    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
      Specified by:
      setResourceLoader in interface org.springframework.context.ResourceLoaderAware
    • selectImports

      public String[] selectImports(org.springframework.core.type.AnnotationMetadata importingClassMetadata)
      Specified by:
      selectImports in interface org.springframework.context.annotation.ImportSelector