Class SNPGuestWrapperFactory
java.lang.Object
com.suse.coco.module.snpguest.execution.SNPGuestWrapperFactory
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SNPGuestWrapperFactory.SNPGuestVersionprivate static final org.apache.logging.log4j.Loggerprivate static Runtimeprivate static SNPGuestWrapperFactory.SNPGuestVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractSNPGuestWrapperCreates a SNPGuestWrapper instance with the right versiontries to find the snpguest tool versionprivate static SNPGuestWrapperFactory.SNPGuestVersionstatic voidsetRuntime(Runtime runtimeIn) Method to specify a runtime.
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
FALLBACK_VERSION
-
theSnpguestVersion
-
runtime
-
-
Constructor Details
-
SNPGuestWrapperFactory
private SNPGuestWrapperFactory()
-
-
Method Details
-
setRuntime
Method to specify a runtime. For unit testing.- Parameters:
runtimeIn- the runtime used to execute processes
-
createSNPGuestWrapper
Creates a SNPGuestWrapper instance with the right version- Returns:
- the SNPGuestWrapper
-
notFoundSetFallback
-
findVersion
tries to find the snpguest tool version- Returns:
- the snpguest version
-