Class BackendManager
java.lang.Object
io.github.jbastgen.stemma.app.git.BackendManager
Turns the user's
BackendSettings into a ready-to-use GitBackend.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA backend together with an optional explanation, shown when the wish could not be fulfilled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.github.jbastgen.stemma.git.api.GitBackendcreate(BackendSettings settings) Creates the backend exactly as requested.createOrFallback(BackendSettings settings) Likecreate(io.github.jbastgen.stemma.app.config.BackendSettings)but never fails: falls back to the built-in backend and says why.io.github.jbastgen.stemma.git.cli.GitDiscoveryThe discovery of git installations, also used by the settings dialog.
-
Constructor Details
-
BackendManager
public BackendManager(io.github.jbastgen.stemma.git.cli.GitDiscovery discovery) - Parameters:
discovery- finds the git installations of this computer
-
-
Method Details
-
discovery
public io.github.jbastgen.stemma.git.cli.GitDiscovery discovery()The discovery of git installations, also used by the settings dialog. -
create
Creates the backend exactly as requested.- Throws:
io.github.jbastgen.stemma.git.api.GitException- if system git is requested but no usable installation is found
-
createOrFallback
Likecreate(io.github.jbastgen.stemma.app.config.BackendSettings)but never fails: falls back to the built-in backend and says why.
-