Class LocalDynamicMetadataResolver

All Implemented Interfaces:
Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, Resolver<EntityDescriptor,​CriteriaSet>, ClearableMetadataResolver, DynamicMetadataResolver, MetadataResolver

public class LocalDynamicMetadataResolver
extends AbstractDynamicMetadataResolver
Resolver which dynamically resolves metadata from a local source managed by an instance of XMLObjectLoadSaveManager.
  • Field Details

    • log

      @Nullable private org.slf4j.Logger log
      Logger.
    • sourceManager

      @Nonnull private XMLObjectLoadSaveManager<XMLObject> sourceManager
      The manager for the local store of metadata.
    • sourceKeyGenerator

      @Nonnull private Function<CriteriaSet,​String> sourceKeyGenerator
      Function for generating the String key used with the source manager.
  • Constructor Details

    • LocalDynamicMetadataResolver

      public LocalDynamicMetadataResolver​(@Nonnull XMLObjectLoadSaveManager<XMLObject> manager)
      Constructor.

      Source key generator will be an internal instance of DefaultLocalDynamicSourceKeyGenerator, with all default parameters.

      Parameters:
      manager - the manager for the local source of metadata
    • LocalDynamicMetadataResolver

      public LocalDynamicMetadataResolver​(@Nonnull XMLObjectLoadSaveManager<XMLObject> manager, @Nullable Function<CriteriaSet,​String> keyGenerator)
      Constructor.
      Parameters:
      manager - the manager for the local source of metadata
      keyGenerator - the source key generator function
    • LocalDynamicMetadataResolver

      public LocalDynamicMetadataResolver​(@Nullable Timer backgroundTaskTimer, @Nonnull XMLObjectLoadSaveManager<XMLObject> manager, @Nullable Function<CriteriaSet,​String> keyGenerator)
      Constructor.

      If the supplied source key generator is null, an internal instance of DefaultLocalDynamicSourceKeyGenerator will be used, with all default parameters.

      Parameters:
      backgroundTaskTimer - timer for management of background tasks
      manager - the manager for the local source of metadata
      keyGenerator - the source key generator function
  • Method Details