Class JonasDeploymentTool

java.lang.Object
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
org.apache.tools.ant.taskdefs.optional.ejb.JonasDeploymentTool
All Implemented Interfaces:
EJBDeploymentTool

public class JonasDeploymentTool
extends GenericDeploymentTool
The deployment tool to add the jonas specific deployment descriptors to the ejb JAR file. JONAS only requires one additional file jonas-ejb-jar.xml.
Version:
1.0
See Also:
EjbJar.createJonas()
  • Field Details

  • Constructor Details

  • Method Details

    • setKeepgenerated

      public void setKeepgenerated​(boolean aBoolean)
      Sets the keepgenerated flag.
      Parameters:
      aBoolean - true if the flag must be set.
    • setAdditionalargs

      public void setAdditionalargs​(java.lang.String aString)
      Sets the additional arguments.
      Parameters:
      aString - additional args.
    • setNocompil

      public void setNocompil​(boolean aBoolean)
      Sets the nocompil flag.
      Parameters:
      aBoolean - true if the flag must be set.
    • setNovalidation

      public void setNovalidation​(boolean aBoolean)
      Sets the novalidation flag.
      Parameters:
      aBoolean - true if the flag must be set.
    • setJavac

      public void setJavac​(java.lang.String aString)
      Sets the java compiler to use.
      Parameters:
      aString - the java compiler.
    • setJavacopts

      public void setJavacopts​(java.lang.String aString)
      Set the options to pass to the java compiler.
      Parameters:
      aString - the options.
    • setRmicopts

      public void setRmicopts​(java.lang.String aString)
      Set the options to pass to the rmi compiler.
      Parameters:
      aString - the options.
    • setSecpropag

      public void setSecpropag​(boolean aBoolean)
      Sets the secpropag flag.
      Parameters:
      aBoolean - true if the flag must be set.
    • setVerbose

      public void setVerbose​(boolean aBoolean)
      Sets the verbose flag.
      Parameters:
      aBoolean - true if the flag must be set.
    • setJonasroot

      public void setJonasroot​(java.io.File aFile)
      Set the JOnAS root directory.
      Parameters:
      aFile - the JOnAS root directory.
    • setKeepgeneric

      public void setKeepgeneric​(boolean aBoolean)
      Sets the keepgeneric flag.
      Parameters:
      aBoolean - true if the flag must be set.
    • setJarsuffix

      public void setJarsuffix​(java.lang.String aString)
      Sets the jar suffix.
      Parameters:
      aString - the string to use as the suffix.
    • setOrb

      public void setOrb​(java.lang.String aString)
      Sets the orb to construct classpath.
      Parameters:
      aString - 'RMI', 'JEREMIE', or 'DAVID'.
    • setNogenic

      public void setNogenic​(boolean aBoolean)
      Sets the nogenic flag.
      Parameters:
      aBoolean - true if the flag must be set.
    • processDescriptor

      public void processDescriptor​(java.lang.String aDescriptorName, javax.xml.parsers.SAXParser saxParser)
      Process a deployment descriptor, generating the necessary vendor specific deployment files...
      Specified by:
      processDescriptor in interface EJBDeploymentTool
      Overrides:
      processDescriptor in class GenericDeploymentTool
      Parameters:
      aDescriptorName - the name of the deployment descriptor
      saxParser - a SAX parser which can be used to parse the deployment descriptor.
    • writeJar

      protected void writeJar​(java.lang.String baseName, java.io.File jarfile, java.util.Hashtable<java.lang.String,​java.io.File> ejbFiles, java.lang.String publicId) throws BuildException
      Method used to encapsulate the writing of the JAR file. Iterates over the filenames/java.io.Files in the Hashtable stored on the instance variable ejbFiles..
      Overrides:
      writeJar in class GenericDeploymentTool
      Parameters:
      baseName - the base name to use.
      jarfile - the jar file to write to.
      ejbFiles - the files to write to the jar.
      publicId - the id to use.
      Throws:
      BuildException - if there is a problem.
    • addVendorFiles

      protected void addVendorFiles​(java.util.Hashtable<java.lang.String,​java.io.File> ejbFiles, java.lang.String ddPrefix)
      Add any vendor specific files which should be included in the EJB Jar..
      Overrides:
      addVendorFiles in class GenericDeploymentTool
      Parameters:
      ejbFiles - a hashtable entryname -> file.
      ddPrefix - a prefix to use.
    • getVendorOutputJarFile

      protected java.io.File getVendorOutputJarFile​(java.lang.String baseName)
      .
    • getJarBaseName

      protected java.lang.String getJarBaseName​(java.lang.String descriptorFileName)
      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..
      Overrides:
      getJarBaseName in class GenericDeploymentTool
      Parameters:
      descriptorFileName - String representing the file name of an EJB descriptor to be processed
      Returns:
      The "basename" which will be used to name the completed JAR file
    • registerKnownDTDs

      protected void registerKnownDTDs​(DescriptorHandler handler)
      Register the locations of all known DTDs. vendor-specific subclasses should override this method to define the vendor-specific locations of the EJB DTDs.
      Overrides:
      registerKnownDTDs in class GenericDeploymentTool
      Parameters:
      handler - no used in this class.
    • checkConfiguration

      protected void checkConfiguration​(java.lang.String descriptorFileName, javax.xml.parsers.SAXParser saxParser) throws BuildException
      Verify the configuration.
      Overrides:
      checkConfiguration in class GenericDeploymentTool
      Parameters:
      descriptorFileName - the name of the descriptor file.
      saxParser - not used.
      Throws:
      BuildException - if there is an error.