Class TemplatedSearchBuilder

All Implemented Interfaces:
ExecutableSearchBuilder<StorageServiceSearch>, Component, DestructableComponent, InitializableComponent

public class TemplatedSearchBuilder extends AbstractInitializableComponent implements ExecutableSearchBuilder<StorageServiceSearch>
An ExecutableSearchBuilder that generates the StorageService context and key using Velocity templates.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • contextTemplate

      @NonnullAfterInit private Template contextTemplate
      Context template to be evaluated.
    • keyTemplate

      @NonnullAfterInit private Template keyTemplate
      Key template to be evaluated.
    • contextTemplateText

      @NonnullAfterInit private String contextTemplateText
      Text of context template to be evaluated.
    • keyTemplateText

      @NonnullAfterInit private String keyTemplateText
      Text of key template to be evaluated.
    • engine

      @NonnullAfterInit private engine
    • customObject

      @Nullable private Object customObject
      A custom object to inject into the template.
  • Constructor Details

    • TemplatedSearchBuilder

      public TemplatedSearchBuilder()
  • Method Details