Class DefaultEncryptInvoker
java.lang.Object
org.apache.maven.cling.invoker.LookupInvoker<EncryptOptions,EncryptInvokerRequest,DefaultEncryptInvoker.LocalContext>
org.apache.maven.cling.invoker.mvnenc.DefaultEncryptInvoker
- All Implemented Interfaces:
AutoCloseable
,Invoker<EncryptInvokerRequest>
,EncryptInvoker
public class DefaultEncryptInvoker
extends LookupInvoker<EncryptOptions,EncryptInvokerRequest,DefaultEncryptInvoker.LocalContext>
implements EncryptInvoker
Encrypt invoker implementation, when Encrypt CLI is being run. System uses ClassWorld launcher, and class world
instance is passed in via "enhanced" main method. Hence, this class expects fully setup ClassWorld via constructor.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.cling.invoker.LookupInvoker
LookupInvoker.ExitException, LookupInvoker.LookupInvokerContext<O extends Options,
R extends InvokerRequest<O>, C extends LookupInvoker.LookupInvokerContext<O, R, C>> -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class org.apache.maven.cling.invoker.LookupInvoker
protoLookup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
badGoalsErrorMessage
(String message, DefaultEncryptInvoker.LocalContext context) protected DefaultEncryptInvoker.LocalContext
createContext
(EncryptInvokerRequest invokerRequest) protected int
protected int
protected void
lookup
(DefaultEncryptInvoker.LocalContext context) Methods inherited from class org.apache.maven.cling.invoker.LookupInvoker
activateLogging, calculateDegreeOfConcurrency, configureLogging, container, createContainerCapsuleFactory, createTerminal, customizeSettingsRequest, customizeSettingsResult, determineBuildEventListener, determineTransferListener, doConfigureWithTerminal, doDetermineBuildEventListener, doInvoke, handleException, helpOrVersionAndMayExit, init, invoke, isRunningOnCI, localRepositoryPath, mayDisableInteractiveMode, populateRequest, populateRequestFromSettings, postCommands, preCommands, prepare, pushProperties, settings, settings, validate
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.api.cli.mvnenc.EncryptInvoker
invoke
-
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
-
DefaultEncryptInvoker
-
-
Method Details
-
execute
- Specified by:
execute
in classLookupInvoker<EncryptOptions,
EncryptInvokerRequest, DefaultEncryptInvoker.LocalContext> - Throws:
Exception
-
createContext
- Specified by:
createContext
in classLookupInvoker<EncryptOptions,
EncryptInvokerRequest, DefaultEncryptInvoker.LocalContext>
-
lookup
- Overrides:
lookup
in classLookupInvoker<EncryptOptions,
EncryptInvokerRequest, DefaultEncryptInvoker.LocalContext>
-
doExecute
- Throws:
Exception
-
badGoalsErrorMessage
-