Package org.wildfly.plugin.cli
Class AbstractCommandExecutor<T extends BaseCommandConfiguration>
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.wildfly.plugin.cli.AbstractCommandExecutor<T>
-
- All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
CommandExecutor,OfflineCommandExecutor
public abstract class AbstractCommandExecutor<T extends BaseCommandConfiguration> extends org.codehaus.plexus.logging.AbstractLogEnabledAn abstract command executor for executing CLI commands.- Author:
- jdenise@redhat.com
-
-
Constructor Summary
Constructors Constructor Description AbstractCommandExecutor()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidexecute(T config, org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver)Executes CLI commands based on the configuration.
-
-
-
Method Detail
-
execute
public abstract void execute(T config, org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver) throws MojoFailureException, MojoExecutionException
Executes CLI commands based on the configuration.- Parameters:
config- the configuration used to execute the CLI commandsartifactResolver- Resolver to retrieve CLI artifact for in-process execution.- Throws:
MojoFailureException- if the JBoss Home directory is required and invalidMojoExecutionException- if an error occurs executing the CLI commands
-
-