Class SpringMetadataProviderImpl

java.lang.Object
org.kuali.rice.krad.data.provider.impl.MetadataProviderBase
org.kuali.rice.krad.data.provider.spring.SpringMetadataProviderImpl
All Implemented Interfaces:
MetadataProvider, Provider

public class SpringMetadataProviderImpl extends MetadataProviderBase
Metadata provider which can be configured via the standard spring mechanisms.

The bean locations are listed as part of the metadata provider service definition. The beans in this provider are loaded into a separate context from all other beans in Rice.

Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

    • resourceLocations

      protected List<String> resourceLocations
      The locations of the bean resources.
    • resourceLoader

      protected org.springframework.core.io.DefaultResourceLoader resourceLoader
      The default resource loader to use.
    • beanFactory

      protected org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory
      The default bean factory to use.
  • Constructor Details

    • SpringMetadataProviderImpl

      public SpringMetadataProviderImpl()
      Creates a metadata provider which can be configured via the standard spring mechanisms.
  • Method Details

    • initializeMetadata

      public void initializeMetadata(Collection<Class<?>> types)
      Performs the initialization of the provider with the given set of types.

      If the list is null or empty, the provider is expected to discover the types via other means, or do nothing if the types cannot be discovered.

      Specified by:
      initializeMetadata in class MetadataProviderBase
    • getResourceLocations

      public List<String> getResourceLocations()
      Gets the locations of the bean resources.
      Returns:
      the locations of the bean resources.
    • setResourceLocations

      public void setResourceLocations(List<String> resourceLocations)
      Setter for the resource locations.
      Parameters:
      resourceLocations - the resource locations to set.
    • toString

      public String toString()
      Overrides:
      toString in class Object