Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.ejb

public Class JbossDeploymentTool

extends GenericDeploymentTool
Class Inheritance
Imports
java.io.File, java.util.Hashtable, org.apache.tools.ant.BuildException, .Project

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

Modifier and TypeField and Description
private String
jarSuffix

Instance variable that stores the suffix for the jboss jarfile.

protected static final String
protected static final String
protected static final String
Inherited from org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool:
ANALYZER_CLASS_FULLANALYZER_CLASS_SUPERANALYZER_FULLANALYZER_NONEANALYZER_SUPERDEFAULT_ANALYZERDEFAULT_BUFFER_SIZEEJB_DDJAR_COMPRESS_LEVELMANIFESTMETA_DIR

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
addVendorFiles(Hashtable<String, File>
the hashtable of files to populate.
ejbFiles
,
String
the prefix to use.
ddPrefix
)

Overrides org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.addVendorFiles.

Add any vendor specific files which should be included in the EJB Jar.
private EjbJar
pack-priv File
getVendorOutputJarFile(String
the basename to use.
baseName
)

Overrides org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.getVendorOutputJarFile.

Get the vendor specific name of the Jar that will be output.
public void
setSuffix(String
the string to use as the suffix.
inString
)

Setter used to store the suffix for the generated JBoss jar file.

public void
Inherited from org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool:
addFileToJaraddSupportClassescheckAndAddDependantscheckConfigurationconfigurecreateClasspathgetClassLoaderForBuildgetCombinedClasspathgetConfiggetDescriptorHandlergetDestDirgetJarBaseNamegetLocationgetManifestFilegetPublicIdgetTaskgetVendorDDPrefixlogneedToRebuildparseEjbFilesprocessDescriptorregisterKnownDTDssetClasspathsetDestdirsetGenericJarSuffixsetTaskusingBaseJarNamewriteJar

Field Detail

jarSuffixback to summary
private String jarSuffix

Instance variable that stores the suffix for the jboss jarfile.

JBOSS_CMP10Dback to summary
protected static final String JBOSS_CMP10D
JBOSS_CMP20Dback to summary
protected static final String JBOSS_CMP20D
JBOSS_DDback to summary
protected static final String JBOSS_DD

Constructor Detail

JbossDeploymentToolback to summary
public JbossDeploymentTool()

Method Detail

addVendorFilesback to summary
protected void addVendorFiles(Hashtable<String, File> ejbFiles, String ddPrefix)

Overrides org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.addVendorFiles.

Add any vendor specific files which should be included in the EJB Jar.

Parameters
ejbFiles:Hashtable<String, File>

the hashtable of files to populate.

ddPrefix:String

the prefix to use.

Annotations
@Override
getParentback to summary
private EjbJar getParent()
getVendorOutputJarFileback to summary
pack-priv File getVendorOutputJarFile(String baseName)

Overrides org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.getVendorOutputJarFile.

Get the vendor specific name of the Jar that will be output. The modification date of this jar will be checked against the dependent bean classes.

Parameters
baseName:String

Doc from org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.getVendorOutputJarFile.

the basename to use.

Returns:File

Doc from org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.getVendorOutputJarFile.

File

Annotations
@Override
setSuffixback to summary
public void setSuffix(String inString)

Setter used to store the suffix for the generated JBoss jar file.

Parameters
inString:String

the string to use as the suffix.

validateConfiguredback to summary
public void validateConfigured() throws BuildException

Overrides org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.validateConfigured.

Implements org.apache.tools.ant.taskdefs.optional.ejb.EJBDeploymentTool.validateConfigured.

Called to validate that the tool parameters have been configured.

Annotations
@Override
Exceptions
BuildException:
If the Deployment Tool's configuration isn't valid
Since
ant 1.6