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

Class JbossDeploymentTool

Implemented Interfaces:
EJBDeploymentTool

public class JbossDeploymentTool
extends GenericDeploymentTool

The deployment tool to add the jboss specific deployment descriptor to the ejb jar file. Jboss only requires one additional file jboss.xml and does not require any additional compilation.
Version:
1.0
See Also:
EjbJar.createJboss()

Field Summary

protected static String
JBOSS_CMP10D
protected static String
JBOSS_CMP20D
protected static String
JBOSS_DD

Fields inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool

ANALYZER_CLASS_FULL, ANALYZER_CLASS_SUPER, ANALYZER_FULL, ANALYZER_NONE, ANALYZER_SUPER, DEFAULT_ANALYZER, EJB_DD, MANIFEST, META_DIR

Method Summary

protected void
addVendorFiles(Hashtable ejbFiles, String ddPrefix)
Add any vendor specific files which should be included in the EJB Jar.
void
setSuffix(String inString)
Setter used to store the suffix for the generated JBoss jar file.
void
validateConfigured()
Called to validate that the tool parameters have been configured.

Methods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool

addFileToJar, addSupportClasses, addVendorFiles, checkAndAddDependants, checkConfiguration, configure, createClasspath, getClassLoaderForBuild, getCombinedClasspath, getConfig, getDescriptorHandler, getDestDir, getJarBaseName, getLocation, getManifestFile, getPublicId, getTask, getVendorDDPrefix, log, needToRebuild, parseEjbFiles, processDescriptor, registerKnownDTDs, setClasspath, setDestdir, setGenericJarSuffix, setTask, usingBaseJarName, validateConfigured, writeJar

Field Details

JBOSS_CMP10D

protected static final String JBOSS_CMP10D

JBOSS_CMP20D

protected static final String JBOSS_CMP20D

JBOSS_DD

protected static final String JBOSS_DD

Method Details

addVendorFiles

protected void addVendorFiles(Hashtable ejbFiles,
                              String ddPrefix)
Add any vendor specific files which should be included in the EJB Jar.
Overrides:
addVendorFiles in interface GenericDeploymentTool

setSuffix

public void setSuffix(String inString)
Setter used to store the suffix for the generated JBoss jar file.
Parameters:
inString - the string to use as the suffix.

validateConfigured

public void validateConfigured()
            throws BuildException
Called to validate that the tool parameters have been configured.
Specified by:
validateConfigured in interface EJBDeploymentTool
Overrides:
validateConfigured in interface GenericDeploymentTool
Throws:
BuildException - If the Deployment Tool's configuration isn't valid
Since:
ant 1.6

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.