Package org.apache.maven.cling.invoker
Class LookupInvoker<O extends Options,R extends InvokerRequest<O>,C extends LookupInvoker.LookupInvokerContext<O,R,C>>
java.lang.Object
org.apache.maven.cling.invoker.LookupInvoker<O,R,C>
- Type Parameters:
O- the options typeR- the request typeC- the context type
- All Implemented Interfaces:
AutoCloseable,Invoker<R>
- Direct Known Subclasses:
DefaultEncryptInvoker,DefaultMavenInvoker
public abstract class LookupInvoker<O extends Options,R extends InvokerRequest<O>,C extends LookupInvoker.LookupInvokerContext<O,R,C>>
extends Object
implements Invoker<R>
Plexus invoker implementation, that boots up Plexus DI container. This class expects fully setup ClassWorld via constructor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classException for intentional exit: No message or anything will be displayed, just the carried exit code will be returned frominvoke(InvokerRequest)method.static classLookupInvoker.LookupInvokerContext<O extends Options,R extends InvokerRequest<O>, C extends LookupInvoker.LookupInvokerContext<O, R, C>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivateLogging(C context) protected intcalculateDegreeOfConcurrency(String threadConfiguration) protected voidconfigureLogging(C context) protected voidprotected ContainerCapsuleFactory<O, R, C> protected abstract CcreateContext(R invokerRequest) protected org.jline.terminal.TerminalcreateTerminal(C context) protected voidcustomizeSettingsRequest(C context, org.apache.maven.api.services.SettingsBuilderRequest settingsBuilderRequest) protected voidcustomizeSettingsResult(C context, org.apache.maven.api.services.SettingsBuilderResult settingsBuilderResult) protected org.apache.maven.logging.BuildEventListenerdetermineBuildEventListener(C context) protected org.eclipse.aether.transfer.TransferListenerdetermineTransferListener(C context, boolean noTransferProgress) protected voiddoConfigureWithTerminal(C context, org.jline.terminal.Terminal terminal) protected org.apache.maven.logging.BuildEventListenerdoDetermineBuildEventListener(C context) protected intprotected abstract intprotected InvokerExceptionhandleException(LookupInvoker.LookupInvokerContext<O, R, C> context, Exception e) protected voidhelpOrVersionAndMayExit(C context) protected voidintprotected booleanisRunningOnCI(C context) protected PathlocalRepositoryPath(C context) protected voidprotected booleanmayDisableInteractiveMode(C context, boolean proposedInteractive) protected voidpopulateRequest(C context, org.apache.maven.execution.MavenExecutionRequest request) protected voidpopulateRequestFromSettings(org.apache.maven.execution.MavenExecutionRequest request, org.apache.maven.api.settings.Settings settings) protected voidpostCommands(C context) protected voidpreCommands(C context) protected voidprotected voidpushProperties(C context) protected voidprotected voidprotected void
-
Field Details
-
protoLookup
-
-
Constructor Details
-
LookupInvoker
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvoker<O extends Options>- Throws:
InvokerException
-
doInvoke
- Throws:
Exception
-
handleException
protected InvokerException handleException(LookupInvoker.LookupInvokerContext<O, R, throws InvokerExceptionC> context, Exception e) - Throws:
InvokerException
-
createContext
- Throws:
InvokerException
-
pushProperties
- Throws:
Exception
-
validate
- Throws:
Exception
-
prepare
- Throws:
Exception
-
configureLogging
- Throws:
Exception
-
createTerminal
-
doConfigureWithTerminal
-
determineBuildEventListener
-
doDetermineBuildEventListener
-
activateLogging
- Throws:
Exception
-
helpOrVersionAndMayExit
- Throws:
Exception
-
preCommands
- Throws:
Exception
-
container
- Throws:
Exception
-
createContainerCapsuleFactory
-
lookup
- Throws:
Exception
-
init
- Throws:
Exception
-
postCommands
- Throws:
Exception
-
settings
- Throws:
Exception
-
settings
protected void settings(C context, org.apache.maven.api.services.SettingsBuilder settingsBuilder) throws Exception - Throws:
Exception
-
customizeSettingsRequest
protected void customizeSettingsRequest(C context, org.apache.maven.api.services.SettingsBuilderRequest settingsBuilderRequest) throws Exception - Throws:
Exception
-
customizeSettingsResult
protected void customizeSettingsResult(C context, org.apache.maven.api.services.SettingsBuilderResult settingsBuilderResult) throws Exception - Throws:
Exception
-
mayDisableInteractiveMode
-
localRepositoryPath
-
populateRequest
protected void populateRequest(C context, org.apache.maven.execution.MavenExecutionRequest request) throws Exception - Throws:
Exception
-
populateRequestFromSettings
protected void populateRequestFromSettings(org.apache.maven.execution.MavenExecutionRequest request, org.apache.maven.api.settings.Settings settings) throws Exception - Throws:
Exception
-
calculateDegreeOfConcurrency
-
isRunningOnCI
-
determineTransferListener
protected org.eclipse.aether.transfer.TransferListener determineTransferListener(C context, boolean noTransferProgress) -
execute
- Throws:
Exception
-