Class SuccessfulBootstrap
java.lang.Object
org.sonarsource.scanner.lib.internal.SuccessfulBootstrap
- All Implemented Interfaces:
AutoCloseable,ScannerEngineBootstrapResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get the facade to interact with the engine.booleanAllow to test if the bootstrapping has been successful.
-
Constructor Details
-
SuccessfulBootstrap
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Description copied from interface:ScannerEngineBootstrapResultAllow 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.- Specified by:
isSuccessfulin interfaceScannerEngineBootstrapResult- Returns:
- true if the bootstrapping has been successful, false otherwise
-
getEngineFacade
Description copied from interface:ScannerEngineBootstrapResultGet the facade to interact with the engine. Only call this method ifScannerEngineBootstrapResult.isSuccessful()returns true.- Specified by:
getEngineFacadein interfaceScannerEngineBootstrapResult- Returns:
- the facade to interact with the engine
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-