|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool org.apache.tools.ant.taskdefs.optional.j2ee.GenericHotDeploymentTool
public class GenericHotDeploymentTool
A generic tool for J2EE server hot deployment.
The simple implementation spawns a JVM with the supplied class name, jvm args, and arguments.
HotDeploymentTool
,
AbstractHotDeploymentTool
,
ServerDeploy
Field Summary |
---|
Fields inherited from interface org.apache.tools.ant.taskdefs.optional.j2ee.HotDeploymentTool |
---|
ACTION_DELETE, ACTION_DEPLOY, ACTION_LIST, ACTION_UNDEPLOY, ACTION_UPDATE |
Constructor Summary | |
---|---|
GenericHotDeploymentTool()
|
Method Summary | |
---|---|
Commandline.Argument |
createArg()
Add a nested argument element to hand to the deployment tool; optional. |
Commandline.Argument |
createJvmarg()
Add a nested argment element to hand to the JVM running the deployment tool. |
void |
deploy()
Perform the actual deployment. |
java.lang.String |
getClassName()
Get the classname attribute. |
Java |
getJava()
get the java attribute. |
protected boolean |
isActionValid()
Determines if the "action" attribute defines a valid action. |
void |
setClassName(java.lang.String className)
The name of the class to execute to perfom deployment; required. |
void |
setTask(ServerDeploy task)
Sets the parent task. |
void |
validateAttributes()
Validates the passed in attributes. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool |
---|
createClasspath, getClasspath, getPassword, getServer, getTask, getUserName, setClasspath, setPassword, setServer, setUserName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericHotDeploymentTool()
Method Detail |
---|
public Commandline.Argument createArg()
public Commandline.Argument createJvmarg()
protected boolean isActionValid()
Subclasses should determine if the action passed in is supported by the vendor's deployment tool. For this generic implementation, the only valid action is "deploy"
isActionValid
in class AbstractHotDeploymentTool
public void setTask(ServerDeploy task)
setTask
in interface HotDeploymentTool
setTask
in class AbstractHotDeploymentTool
task
- An ServerDeploy object representing the parent task.public void deploy() throws BuildException
deploy
in interface HotDeploymentTool
deploy
in class AbstractHotDeploymentTool
BuildException
- if the attributes are invalid or incomplete.public void validateAttributes() throws BuildException
validateAttributes
in interface HotDeploymentTool
validateAttributes
in class AbstractHotDeploymentTool
BuildException
- if the attributes are invalid or incomplete.public void setClassName(java.lang.String className)
className
- The fully qualified class name of the class
to perform deployment.public Java getJava()
public java.lang.String getClassName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |