org.codehaus.mojo.weblogic
Class DeployMojoBase

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.weblogic.DeployMojoBase
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DeployMojo, ListAppsMojo, ReDeployMojo, StartMojo, StopMojo, UnDeployMojo

public abstract class DeployMojoBase
extends org.apache.maven.plugin.AbstractMojo

This class is a base class for all deployment related mojos.

Version:
$Id: DeployMojoBase.java 3427 2007-02-26 23:29:09Z scryan $
Author:
Scott Ryan

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DeployMojoBase()
           
 
Method Summary
 void execute()
          This method will perform the deployment of the object to the proper server url.
 String getAdminServerHostName()
          Returns the value for the admin server host name property.
 String getAdminServerPort()
          Returns the value for the admin server port property.
 String getAdminServerProtocol()
          Getter for property admin server protocol.
 String getArtifactPath()
          Getter for property artifact path.
protected  String[] getInputParameters(String inOperation)
          This method will build up the parameters required for the various deployment operations.
 String getName()
          Returns the value for the name property.
 String getPassword()
          Returns the value for the password property.
 String getProjectPackaging()
          Getter for property project packaging.
 List getTargetList()
          This method will return a list of target by parsing the comma separated list of targets..
 String getTargetNames()
          Returns the value for the target names property.
 String getUserId()
          Returns the value for the user id property.
 boolean isRemote()
          Getter for property remote.
 void setAdminServerHostName(String inAdminServerHostName)
          Sets the value of the admin server host name property.
 void setAdminServerPort(String inAdminServerPort)
          Sets the value of the admin server port property.
 void setAdminServerProtocol(String inAdminServerProtocol)
          Setter for the admin server protocol.
 void setArtifactPath(String inArtifactPath)
          Setter for the artifact path.
 void setName(String inName)
          Sets the value of the name property.
 void setPassword(String inPassword)
          Sets the value of the password property.
 void setProjectPackaging(String inProjectPackaging)
          Setter for the project packaging.
 void setRemote(boolean inRemote)
          Setter for the remote.
 void setTargetNames(String inTargetNames)
          Sets the value of the target names property.
 void setUserId(String inUserId)
          Sets the value of the user id property.
 String toString()
          toString methode: creates a String representation of the object
 
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, wait, wait, wait
 

Constructor Detail

DeployMojoBase

public DeployMojoBase()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
This method will perform the deployment of the object to the proper server url.

Throws:
org.apache.maven.plugin.MojoExecutionException - Thrown if we fail to obtain a Weblogic deployment instance.

getAdminServerHostName

public String getAdminServerHostName()
Returns the value for the admin server host name property.

Returns:
The value of the admin server host name property.

setAdminServerHostName

public void setAdminServerHostName(String inAdminServerHostName)
Sets the value of the admin server host name property.

Parameters:
inAdminServerHostName - The new value of the admin server host name property.

getAdminServerPort

public String getAdminServerPort()
Returns the value for the admin server port property.

Returns:
The value of the admin server port property.

setAdminServerPort

public void setAdminServerPort(String inAdminServerPort)
Sets the value of the admin server port property.

Parameters:
inAdminServerPort - The new value of the admin server port property.

getName

public String getName()
Returns the value for the name property.

Returns:
The value of the name property.

setName

public void setName(String inName)
Sets the value of the name property.

Parameters:
inName - The new value of the name property.

getPassword

public String getPassword()
Returns the value for the password property.

Returns:
The value of the password property.

setPassword

public void setPassword(String inPassword)
Sets the value of the password property.

Parameters:
inPassword - The new value of the password property.

getTargetNames

public String getTargetNames()
Returns the value for the target names property.

Returns:
The value of the target names property.

setTargetNames

public void setTargetNames(String inTargetNames)
Sets the value of the target names property.

Parameters:
inTargetNames - The new value of the target names property.

getUserId

public String getUserId()
Returns the value for the user id property.

Returns:
The value of the user id property.

setUserId

public void setUserId(String inUserId)
Sets the value of the user id property.

Parameters:
inUserId - The new value of the user id property.

getTargetList

public List getTargetList()
This method will return a list of target by parsing the comma separated list of targets..

Returns:
The value of target list.

isRemote

public boolean isRemote()
Getter for property remote.

Returns:
The value of remote.

setRemote

public void setRemote(boolean inRemote)
Setter for the remote.

Parameters:
inRemote - The value of remote.

getAdminServerProtocol

public String getAdminServerProtocol()
Getter for property admin server protocol.

Returns:
The value of admin server protocol.

setAdminServerProtocol

public void setAdminServerProtocol(String inAdminServerProtocol)
Setter for the admin server protocol.

Parameters:
inAdminServerProtocol - The value of admin server protocol.

getInputParameters

protected String[] getInputParameters(String inOperation)
This method will build up the parameters required for the various deployment operations.

Parameters:
inOperation - The deployment operation to take place.
Returns:
The value of input parameters to be passed to the deployer.

getArtifactPath

public String getArtifactPath()
Getter for property artifact path.

Returns:
The value of artifact path.

setArtifactPath

public void setArtifactPath(String inArtifactPath)
Setter for the artifact path.

Parameters:
inArtifactPath - The value of artifact path.

getProjectPackaging

public String getProjectPackaging()
Getter for property project packaging.

Returns:
The value of project packaging.

setProjectPackaging

public void setProjectPackaging(String inProjectPackaging)
Setter for the project packaging.

Parameters:
inProjectPackaging - The value of project packaging.

toString

public String toString()
toString methode: creates a String representation of the object

Overrides:
toString in class Object
Returns:
the String representation


Copyright © 2005-2008 Codehaus. All Rights Reserved.