Interface ScriptDiscoveryConfiguration.DiscoveryRetainer

Enclosing class:
ScriptDiscoveryConfiguration
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ScriptDiscoveryConfiguration.DiscoveryRetainer
Represents a callback that can be used to retain the results of the discovery process.

This callback will be invoked once at the end of the discovery phase, allowing for further operations to be performed with the script files that the automatic discovery process has identified. In particular, this callback is guaranteed to be invoked before a IScriptRun instance will be created.

This is a functional interface whose functional method is retain(Path, List).

Since:
10.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    retain(Path root, List<Path> discoveryResults)
    Performs the retaining operations that are deemed necessary.
  • Method Details

    • retain

      void retain(Path root, List<Path> discoveryResults)
      Performs the retaining operations that are deemed necessary.
      Parameters:
      root - The path from which script discovery has begun.
      discoveryResults - The paths that have been discovered and deemed valid scripts.
      Since:
      10.1.0