org.objectweb.jonas.ant.ServerDeploy Class Reference

List of all members.

Public Member Functions

void addGeneric (GenericHotDeploymentTool tool)
void addWeblogic (WebLogicHotDeploymentTool tool)
void addJonas (JonasHotDeploymentTool tool)
void execute () throws BuildException
String getAction ()
void setAction (String action)
File getSource ()
void setSource (File source)

Detailed Description

Controls hot deployment tools for J2EE servers. This class is used as a framework for the creation of vendor specific hot deployment tools.
See also:
org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool

org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool

org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool

org.apache.tools.ant.taskdefs.optional.j2ee.WebLogicHotDeploymentTool

Definition at line 36 of file ServerDeploy.java.


Member Function Documentation

void org.objectweb.jonas.ant.ServerDeploy.addGeneric GenericHotDeploymentTool  tool  ) 
 

Creates a generic deployment tool.

Ant calls this method on creation to handle embedded "generic" elements in the ServerDeploy task.

Parameters:
tool An instance of GenericHotDeployment tool, passed in by Ant.

Definition at line 64 of file ServerDeploy.java.

void org.objectweb.jonas.ant.ServerDeploy.addJonas JonasHotDeploymentTool  tool  ) 
 

Creates a JOnAS deployment tool, for deployment to JOnAS servers.

Ant calls this method on creation to handle embedded "jonas" elements in the ServerDeploy task.

Parameters:
tool An instance of JonasHotDeployment tool, passed in by Ant.

Definition at line 82 of file ServerDeploy.java.

References org.objectweb.jonas.ant.JonasHotDeploymentTool.setTask().

Here is the call graph for this function:

void org.objectweb.jonas.ant.ServerDeploy.addWeblogic WebLogicHotDeploymentTool  tool  ) 
 

Creates a WebLogic deployment tool, for deployment to WebLogic servers.

Ant calls this method on creation to handle embedded "weblogic" elements in the ServerDeploy task.

Parameters:
tool An instance of WebLogicHotDeployment tool, passed in by Ant.

Definition at line 73 of file ServerDeploy.java.

void org.objectweb.jonas.ant.ServerDeploy.execute  )  throws BuildException
 

Execute the task.

This method calls the deploy() method on each of the vendor-specific tools in the vendorTools collection. This performs the actual process of deployment on each tool.

Exceptions:
org.apache.tools.ant.BuildException if the attributes are invalid or incomplete, or a failure occurs in the deployment process.

Definition at line 101 of file ServerDeploy.java.

References org.objectweb.jonas.ant.HotDeploymentTool.deploy(), and org.objectweb.jonas.ant.HotDeploymentTool.validateAttributes().

Here is the call graph for this function:

String org.objectweb.jonas.ant.ServerDeploy.getAction  ) 
 

Returns the action field.

Returns:
A string representing the "action" attribute.

Definition at line 119 of file ServerDeploy.java.

Referenced by org.objectweb.jonas.ant.JonasHotDeploymentTool.deploy(), org.objectweb.jonas.ant.JonasHotDeploymentTool.isActionValid(), and org.objectweb.jonas.ant.JonasHotDeploymentTool.validateAttributes().

File org.objectweb.jonas.ant.ServerDeploy.getSource  ) 
 

Returns the source field (the path/filename of the component to be deployed.

Returns:
A File object representing the "source" attribute.

Definition at line 138 of file ServerDeploy.java.

Referenced by org.objectweb.jonas.ant.JonasHotDeploymentTool.deploy().

void org.objectweb.jonas.ant.ServerDeploy.setAction String  action  ) 
 

The action to be performed, usually "deploy"; required. Some tools support additional actions, such as "delete", "list", "undeploy", "update"...

Parameters:
action A String representing the "action" attribute.

Definition at line 129 of file ServerDeploy.java.

void org.objectweb.jonas.ant.ServerDeploy.setSource File  source  ) 
 

The filename of the component to be deployed; optional depending upon the tool and the action.

Parameters:
source String representing the "source" attribute.

Definition at line 147 of file ServerDeploy.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:17 2005 for JOnAS by  doxygen 1.3.9.1