Interface TempDirectory.ParentDirProvider

  • Enclosing class:
    TempDirectory
    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 TempDirectory.ParentDirProvider
    ParentDirProvider can be used to configure a custom parent directory for all temporary directories created by the TempDirectory extension this is used with.
    See Also:
    RegisterExtension, TempDirectory.createInCustomDirectory(ParentDirProvider)
    • Method Detail

      • get

        java.nio.file.Path get​(TempDirectory.TempDirContext tempDirContext,
                               ExtensionContext extensionContext)
                        throws java.lang.Exception
        Get the parent directory for all temporary directories created by the TempDirectory extension this is used with.
        Parameters:
        tempDirContext - the context for the field or parameter for which a temporary directory should be created; never null
        extensionContext - the current extension context; never null
        Returns:
        the parent directory for all temporary directories; never null
        Throws:
        java.lang.Exception