API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.ant.taskdefs.optional.ejb. JbossDeploymentTool View Source
Author(s)
Since
Version
1.0
Serial
Hierarchy
 Object
      GenericDeploymentTool
          JbossDeploymentTool
Implements
Subclasses
Description
public class JbossDeploymentTool
  The deployment tool to add the jboss specific deployment descriptor to the ejb jar file.
See also:    EjbJar.createJboss()
Constructors
public JbossDeploymentTool ()
Methods
Hide/Show inherited methods
protected void addFileToJar (java.util.jar.JarOutputStream jStream, java.io.File inputFile, java.lang.String logicalFilename) throws BuildException [Inherited From GenericDeploymentTool]
  Utility method that encapsulates the logic of adding a file entry to a .jar file.
protected void addSupportClasses (java.util.Hashtable ejbFiles) [Inherited From GenericDeploymentTool]
  Adds any classes the user specifies using support nested elements to the ejbFiles Hashtable.
protected void addVendorFiles (java.util.Hashtable ejbFiles, java.lang.String ddPrefix) [Overrides GenericDeploymentTool]
  Add any vendor specific files which should be included in the EJB Jar.
protected void checkAndAddDependants (java.util.Hashtable checkEntries) throws BuildException [Inherited From GenericDeploymentTool]
  Add all available classes, that depend on Remote, Home, Bean, PK
protected void checkConfiguration (java.lang.String descriptorFileName, javax.xml.parsers.SAXParser saxParser) throws BuildException [Inherited From GenericDeploymentTool]
  This method is called as the first step in the processDescriptor method to allow vendor-specific subclasses to validate the task configuration prior to processing the descriptor.
public void configure (org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.Config config) [Inherited From GenericDeploymentTool]
  Configure this tool for use in the ejbjar task.
public Path createClasspath () [Inherited From GenericDeploymentTool]
  Add the classpath for the user classes
protected java.lang.ClassLoader getClassLoaderForBuild () [Inherited From GenericDeploymentTool]
  Returns a Classloader object which parses the passed in generic EjbJar classpath.
protected Path getCombinedClasspath () [Inherited From GenericDeploymentTool]
  Get the classpath by combining the one from the surrounding task, if any and the one from this tool.
protected org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.Config getConfig () [Inherited From GenericDeploymentTool]
  Get the basename terminator.
protected DescriptorHandler getDescriptorHandler (java.io.File srcDir) [Inherited From GenericDeploymentTool]
  Get a descriptionHandler.
protected java.io.File getDestDir () [Inherited From GenericDeploymentTool]
  Get the destination directory.
protected java.lang.String getJarBaseName (java.lang.String descriptorFileName) [Inherited From GenericDeploymentTool]
  Using the EJB descriptor file name passed from the ejbjar task, this method returns the "basename" which will be used to name the completed JAR file.
protected Location getLocation () [Inherited From GenericDeploymentTool]
  Get the build file location associated with this element's task.
protected java.io.File getManifestFile (java.lang.String prefix) [Inherited From GenericDeploymentTool]
  Get the manifets file to use for building the generic jar.
protected java.lang.String getPublicId () [Inherited From GenericDeploymentTool]
  Returns the Public ID of the DTD specified in the EJB descriptor.
protected Task getTask () [Inherited From GenericDeploymentTool]
  Get the task for this tool.
public java.lang.String getVendorDDPrefix (java.lang.String baseName, java.lang.String descriptorFileName) [Inherited From GenericDeploymentTool]
  Get the prefix for vendor deployment descriptors.
pack-private java.io.File getVendorOutputJarFile (java.lang.String baseName) [Overrides GenericDeploymentTool]
  Get the vendor specific name of the Jar that will be output.
protected void log (java.lang.String message, int level) [Inherited From GenericDeploymentTool]
  Log a message to the Ant output.
protected boolean needToRebuild (java.util.Hashtable ejbFiles, java.io.File jarFile) [Inherited From GenericDeploymentTool]
  This method checks the timestamp on each file listed in the ejbFiles and compares them to the timestamp on the jarFile .
protected java.util.Hashtable parseEjbFiles (java.lang.String descriptorFileName, javax.xml.parsers.SAXParser saxParser) throws java.io.IOException org.xml.sax.SAXException [Inherited From GenericDeploymentTool]
  This method returns a list of EJB files found when the specified EJB descriptor is parsed and processed.
public void processDescriptor (java.lang.String descriptorFileName, javax.xml.parsers.SAXParser saxParser) [Inherited From GenericDeploymentTool]
Process a deployment descriptor, generating the necessary vendor specific deployment files..
protected void registerKnownDTDs (DescriptorHandler handler) [Inherited From GenericDeploymentTool]
  Register the locations of all known DTDs.
public void setClasspath (Path classpath) [Inherited From GenericDeploymentTool]
  Set the classpath to be used for this compilation.
public void setDestdir (java.io.File inDir) [Inherited From GenericDeploymentTool]
  Set the destination directory; required.
public void setGenericJarSuffix (java.lang.String inString) [Inherited From GenericDeploymentTool]
  Set the suffix for the generated jar file.
public void setSuffix (java.lang.String inString)
  Setter used to store the suffix for the generated JBoss jar file.
public void setTask (Task task) [Inherited From GenericDeploymentTool]
  Set the task which owns this tool
protected boolean usingBaseJarName () [Inherited From GenericDeploymentTool]
  Indicate if this build is using the base jar name.
public void validateConfigured () throws BuildException [Overrides GenericDeploymentTool]
  Called to validate that the tool parameters have been configured.
protected void writeJar (java.lang.String baseName, java.io.File jarfile, java.util.Hashtable files, java.lang.String publicId) throws BuildException [Inherited From GenericDeploymentTool]
  Method used to encapsulate the writing of the JAR file.
Fields
Hide/Show inherited fields
publicfinalstatic java.lang.String ANALYZER_CLASS_FULL = "org.apache.tools.ant.util.depend.bcel.FullAnalyzer" [Inherited From GenericDeploymentTool]
The analyzer class for the super analyzer
publicfinalstatic java.lang.String ANALYZER_CLASS_SUPER = "org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer" [Inherited From GenericDeploymentTool]
The analyzer class for the super analyzer
publicfinalstatic java.lang.String ANALYZER_FULL = "full" [Inherited From GenericDeploymentTool]
A dependency analyzer name to find all related classes
publicfinalstatic java.lang.String ANALYZER_NONE = "none" [Inherited From GenericDeploymentTool]
A dependency analyzer name for no analyzer
publicfinalstatic java.lang.String ANALYZER_SUPER = "super" [Inherited From GenericDeploymentTool]
A dependency analyzer name to find ancestor classes
publicfinalstatic java.lang.String DEFAULT_ANALYZER = "super" [Inherited From GenericDeploymentTool]
The default analyzer
publicfinalstatic int DEFAULT_BUFFER_SIZE = "1024" [Inherited From GenericDeploymentTool]
The default buffer byte size to use for IO
protectedfinalstatic java.lang.String EJB_DD = "ejb-jar.xml" [Inherited From GenericDeploymentTool]
Name for EJB Deployment descriptor within EJB jars
publicfinalstatic int JAR_COMPRESS_LEVEL = "9" [Inherited From GenericDeploymentTool]
The level to use for compression
protectedfinalstatic java.lang.String JBOSS_CMP10D = "jaws.xml"
protectedfinalstatic java.lang.String JBOSS_CMP20D = "jbosscmp-jdbc.xml"
protectedfinalstatic java.lang.String JBOSS_DD = "jboss.xml"
protectedfinalstatic java.lang.String MANIFEST = "META-INF/MANIFEST.MF" [Inherited From GenericDeploymentTool]
The standard MANIFEST file
protectedfinalstatic java.lang.String META_DIR = "META-INF/" [Inherited From GenericDeploymentTool]
The standard META-INF directory in jar files
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar