Class ResourceReaderRepositoryPopulator

java.lang.Object
org.springframework.data.repository.init.ResourceReaderRepositoryPopulator
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware, RepositoryPopulator

public class ResourceReaderRepositoryPopulator extends Object implements RepositoryPopulator, org.springframework.context.ApplicationEventPublisherAware
A RepositoryPopulator using a ResourceReader to read objects from the configured Resources.
Since:
1.4
Author:
Oliver Gierke, Christoph Strobl
  • Constructor Details

  • Method Details

    • setResourceLocation

      public void setResourceLocation(String location) throws IOException
      Configures the location of the Resources to be used to initialize the repositories.
      Parameters:
      location - must not be null or empty.
      Throws:
      IOException
    • setResources

      public void setResources(org.springframework.core.io.Resource... resources)
      Configures the Resources to be used to initialize the repositories.
      Parameters:
      resources -
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
      Specified by:
      setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
    • populate

      public void populate(Repositories repositories)
      Description copied from interface: RepositoryPopulator
      Populates the given Repositories.
      Specified by:
      populate in interface RepositoryPopulator
      Parameters:
      repositories - must not be null.