Class HelperImpl
java.lang.Object
org.apache.maven.cling.executor.internal.HelperImpl
- All Implemented Interfaces:
ExecutorHelper
Simple router to executors, and delegate to executor tool.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.cling.executor.ExecutorHelper
ExecutorHelper.Mode
-
Constructor Summary
ConstructorsConstructorDescriptionHelperImpl
(ExecutorHelper.Mode defaultMode, Path installationDirectory, Path userHomeDirectory, Executor embedded, Executor forked) -
Method Summary
Modifier and TypeMethodDescriptionint
execute
(ExecutorHelper.Mode mode, ExecutorRequest executorRequest) Executes the request with passed in mode executor.Creates pre-populated builder forExecutorRequest
.Returns the preferred mode of this helper.protected Executor
getExecutor
(ExecutorHelper.Mode mode, ExecutorRequest request) High level operation, returns the version of the Maven covered by this helper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.cling.executor.ExecutorHelper
execute
-
Constructor Details
-
HelperImpl
-
-
Method Details
-
getDefaultMode
Description copied from interface:ExecutorHelper
Returns the preferred mode of this helper.- Specified by:
getDefaultMode
in interfaceExecutorHelper
-
executorRequest
Description copied from interface:ExecutorHelper
Creates pre-populated builder forExecutorRequest
. Users of helper must use this method to create properly initialized request builder.- Specified by:
executorRequest
in interfaceExecutorHelper
-
execute
public int execute(ExecutorHelper.Mode mode, ExecutorRequest executorRequest) throws ExecutorException Description copied from interface:ExecutorHelper
Executes the request with passed in mode executor.- Specified by:
execute
in interfaceExecutorHelper
- Throws:
ExecutorException
-
mavenVersion
Description copied from interface:ExecutorHelper
High level operation, returns the version of the Maven covered by this helper. This method call caches underlying operation, and is safe to invoke as many times needed.- Specified by:
mavenVersion
in interfaceExecutorHelper
- See Also:
-
getExecutor
protected Executor getExecutor(ExecutorHelper.Mode mode, ExecutorRequest request) throws ExecutorException - Throws:
ExecutorException
-