org.codehaus.cargo.maven2
Class AbstractDeployerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.cargo.maven2.AbstractCommonMojo
org.codehaus.cargo.maven2.AbstractCargoMojo
org.codehaus.cargo.maven2.AbstractDeployerMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- DeployerDeployMojo, DeployerRedeployMojo, DeployerStartMojo, DeployerStopMojo, DeployerUndeployMojo
- public abstract class AbstractDeployerMojo
- extends AbstractCargoMojo
Common mojo for all deployer actions (start deployable, stop deployable, deploy deployable,
undeploy deployable, etc).
- Version:
- $Id: AbstractDeployerMojo.java 1238 2006-11-26 14:53:52Z vmassol $
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected org.codehaus.cargo.container.deployer.Deployer |
createDeployer(org.codehaus.cargo.container.Container container)
|
void |
doExecute()
Executes the plugin.
This method must be implemented by all Mojos extending this class. The
reason for this pattern is because we want the AbstractCargoMojo.execute() method to always be called
so that necessary plugin initialization can be performed. Without this pattern Mojos
extending this class could "forget" to call super.execute() thus leading to
unpredictible results. |
org.codehaus.cargo.generic.deployer.DeployerFactory |
getDeployerFactory()
|
protected abstract void |
performDeployerActionOnSingleDeployable(org.codehaus.cargo.container.deployer.Deployer deployer,
org.codehaus.cargo.container.deployable.Deployable deployable,
java.net.URL pingURL,
java.lang.Long pingTimeout)
|
void |
setDeployerFactory(org.codehaus.cargo.generic.deployer.DeployerFactory factory)
|
Methods inherited from class org.codehaus.cargo.maven2.AbstractCargoMojo |
containsAutoDeployable, createAutoDeployDeployable, createConfiguration, createContainer, createLogger, createNewContainer, execute, getCargoProject, getConfigurationElement, getContainerElement, getDeployerElement, getFileHandler, loadEmbeddedContainerDependencies, setCargoProject, setConfigurationElement, setContainerElement, setDeployerElement, setFileHandler |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDeployerMojo
public AbstractDeployerMojo()
doExecute
public void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
- Executes the plugin.
This method must be implemented by all Mojos extending this class. The
reason for this pattern is because we want the AbstractCargoMojo.execute()
method to always be called
so that necessary plugin initialization can be performed. Without this pattern Mojos
extending this class could "forget" to call super.execute()
thus leading to
unpredictible results.
- Specified by:
doExecute
in class AbstractCargoMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
- in case of error- See Also:
AbstractCargoMojo.doExecute()
setDeployerFactory
public void setDeployerFactory(org.codehaus.cargo.generic.deployer.DeployerFactory factory)
getDeployerFactory
public org.codehaus.cargo.generic.deployer.DeployerFactory getDeployerFactory()
createDeployer
protected org.codehaus.cargo.container.deployer.Deployer createDeployer(org.codehaus.cargo.container.Container container)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
performDeployerActionOnSingleDeployable
protected abstract void performDeployerActionOnSingleDeployable(org.codehaus.cargo.container.deployer.Deployer deployer,
org.codehaus.cargo.container.deployable.Deployable deployable,
java.net.URL pingURL,
java.lang.Long pingTimeout)
Copyright © 2004-2007 Codehaus. All Rights Reserved.