Class ResourceBackedMetadataResolver

All Implemented Interfaces:
Iterable<EntityDescriptor>, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, Resolver<EntityDescriptor,CriteriaSet>, IterableMetadataSource, BatchMetadataResolver, MetadataResolver, RefreshableMetadataResolver

public class ResourceBackedMetadataResolver extends AbstractReloadingMetadataResolver
A metadata provider that reads metadata from a {#link Resource.
Since:
2.2
  • Field Details

    • log

      private final org.slf4j.Logger log
      Class logger.
    • metadataResource

      private Resource metadataResource
      Resource from which metadata is read.
  • Constructor Details

    • ResourceBackedMetadataResolver

      public ResourceBackedMetadataResolver(@ParameterName(name="timer") Timer timer, @ParameterName(name="resource") Resource resource) throws IOException
      Constructor.
      Parameters:
      resource - resource from which to read the metadata file.
      timer - task timer used to schedule metadata refresh tasks
      Throws:
      IOException - thrown if there is a problem retrieving information about the resource
    • ResourceBackedMetadataResolver

      public ResourceBackedMetadataResolver(@ParameterName(name="resource") Resource resource) throws IOException
      Constructor.
      Parameters:
      resource - resource from which to read the metadata file.
      Throws:
      IOException - thrown if there is a problem retrieving information about the resource
  • Method Details