Package org.sonarsource.scanner.lib
Interface ScannerEngineBootstrapResult
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FailedBootstrap,SuccessfulBootstrap
Closing this will automatically close the
ScannerEngineFacade that it contains, if any.-
Method Summary
Modifier and TypeMethodDescriptionGet the facade to interact with the engine.booleanAllow to test if the bootstrapping has been successful.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
isSuccessful
boolean isSuccessful()Allow to test if the bootstrapping has been successful. If not, theScannerEngineFacadeshould not be used. A log message should have been emitted in case of failure.- Returns:
- true if the bootstrapping has been successful, false otherwise
-
getEngineFacade
ScannerEngineFacade getEngineFacade()Get the facade to interact with the engine. Only call this method ifisSuccessful()returns true.- Returns:
- the facade to interact with the engine
-