Interface SelectionLoadingOptionsStep


@Incubating public interface SelectionLoadingOptionsStep
The DSL entry point passed to consumers in SearchSessionBuilder.loading(Consumer), allowing the definition of context for use by selection loading strategies: connections, third-party sessions, ...
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    context(Class<T> contextType, T context)
    Sets context for use by selection loading strategies: connections, third-party sessions, ...
  • Method Details

    • context

      <T> void context(Class<T> contextType, T context)
      Sets context for use by selection loading strategies: connections, third-party sessions, ...

      The context can be retrieved through SelectionLoadingOptions.context(Class).

      Type Parameters:
      T - The type of context.
      Parameters:
      contextType - The type of context, used as a key to retrieve it from SelectionLoadingOptions.context(Class).
      context - The context instance.