All Implemented Interfaces:
Provider<Path>

public class FromFiles extends FilePathProvider
Extracts a path from a FilesProvider.

The FilesProvider must return exactly one file, otherwise an exception is thrown.

Author:
Owen Feehan
  • Constructor Details

    • FromFiles

      public FromFiles()
  • Method Details

    • get

      public Path get() throws ProvisionFailedException
      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
      Throws:
      ProvisionFailedException - if the object cannot be returned.
    • getFiles

      public FilesProvider getFiles()
      A provider that should return exactly one File whose path is employed.
    • setFiles

      public void setFiles(FilesProvider files)
      A provider that should return exactly one File whose path is employed.