Class UpgradeInvoker
java.lang.Object
org.apache.maven.cling.invoker.LookupInvoker<UpgradeContext>
org.apache.maven.cling.invoker.mvnup.UpgradeInvoker
- All Implemented Interfaces:
AutoCloseable, org.apache.maven.api.cli.Invoker
mvnup invoker implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class LookupInvoker
contextConsumer, protoLookup -
Constructor Summary
ConstructorsConstructorDescriptionUpgradeInvoker(org.apache.maven.api.services.Lookup protoLookup, Consumer<LookupContext> contextConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected intbadGoalsErrorMessage(String message, UpgradeContext context) protected UpgradeContextcreateContext(org.apache.maven.api.cli.InvokerRequest invokerRequest) protected intexecute(UpgradeContext context) protected voidlookup(UpgradeContext context) Methods inherited from class LookupInvoker
activateLogging, calculateDegreeOfConcurrency, configureLogging, container, createContainerCapsuleFactory, createCoreExtensionSelector, createTerminal, customizeSettingsRequest, customizeSettingsResult, describe, determineBuildEventListener, determineWriter, doConfigureWithTerminal, doConfigureWithTerminalWithRawStreamsDisabled, doConfigureWithTerminalWithRawStreamsEnabled, doCreateTerminal, doDetermineBuildEventListener, doDetermineWriter, doInvoke, handleException, helpOrVersionAndMayExit, init, invoke, localRepositoryPath, mayDisableInteractiveMode, populateRequest, populateRequestFromSettings, postCommands, postContainer, preCommands, printErrors, pushCoreProperties, pushUserProperties, settings, settings, setupGuiceClassLoading, showVersion, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.cli.Invoker
close
-
Field Details
-
OK
public static final int OK- See Also:
-
ERROR
public static final int ERROR- See Also:
-
BAD_OPERATION
public static final int BAD_OPERATION- See Also:
-
CANCELED
public static final int CANCELED- See Also:
-
-
Constructor Details
-
UpgradeInvoker
public UpgradeInvoker(org.apache.maven.api.services.Lookup protoLookup, @Nullable Consumer<LookupContext> contextConsumer)
-
-
Method Details
-
createContext
- Specified by:
createContextin classLookupInvoker<UpgradeContext>
-
lookup
- Overrides:
lookupin classLookupInvoker<UpgradeContext>- Throws:
Exception
-
execute
- Specified by:
executein classLookupInvoker<UpgradeContext>- Throws:
Exception
-
badGoalsErrorMessage
-