Module io.github.ascopes.jct
Package io.github.ascopes.jct.workspaces
Interface RamFileSystemProvider
Service provider interface for a RAM-based file system provider.
This enables swapping out the default RAM file system implementation with a custom
implementation by using Java's ServiceLoader mechanism.
- Since:
- 0.0.1 (0.0.1-M9)
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptioncreateFileSystem(String name) Create the new file system.static RamFileSystemProviderGet the service provider implementation to use.
-
Method Details
-
createFileSystem
Create the new file system.- Parameters:
name- the file system name to use.- Returns:
- the file system object.
-
getInstance
Get the service provider implementation to use.- Returns:
- the first service provider implementation, or a default implementation if not provided.
-