org.apache.tools.ant.taskdefs.optional.ejb

Interface EJBDeploymentTool

public interface EJBDeploymentTool

The interface to implement for deployment tools.
Method Summary
voidconfigure(EjbJar.Config config)
Configure this tool for use in the ejbjar task.
voidprocessDescriptor(String descriptorFilename, SAXParser saxParser)
Process a deployment descriptor, generating the necessary vendor specific deployment files.
voidsetTask(Task task)
Set the task which owns this tool
voidvalidateConfigured()
Called to validate that the tool parameters have been configured.

Method Detail

configure

public void configure(EjbJar.Config config)
Configure this tool for use in the ejbjar task.

Parameters: config contains configuration state.

processDescriptor

public void processDescriptor(String descriptorFilename, SAXParser saxParser)
Process a deployment descriptor, generating the necessary vendor specific deployment files.

Parameters: descriptorFilename the name of the deployment descriptor saxParser a SAX parser which can be used to parse the deployment descriptor.

Throws: BuildException if there is an error.

setTask

public void setTask(Task task)
Set the task which owns this tool

Parameters: task the task.

validateConfigured

public void validateConfigured()
Called to validate that the tool parameters have been configured.

Throws: BuildException if there is an error.