| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
org.apache.tools.ant.taskdefs.optional.ejb.JonasDeploymentTool
public class JonasDeploymentTool
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.
EjbJar.createJonas()| Field Summary | |
|---|---|
| protected static java.lang.String | DAVID_ORBDAVID ORB. | 
| protected static java.lang.String | EJB_JAR_1_1_DTDName of the standard deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory). | 
| protected static java.lang.String | EJB_JAR_1_1_PUBLIC_IDPublic Id of the standard deployment descriptor DTD. | 
| protected static java.lang.String | EJB_JAR_2_0_DTD | 
| protected static java.lang.String | EJB_JAR_2_0_PUBLIC_ID | 
| protected static java.lang.String | GENIC_CLASSGenIC class name (JOnAS 2.5) | 
| protected static java.lang.String | JEREMIE_ORBJEREMIE ORB. | 
| protected static java.lang.String | JONAS_DDDefault JOnAS deployment descriptor name. | 
| protected static java.lang.String | JONAS_EJB_JAR_2_4_DTDName of the JOnAS-specific deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory). | 
| protected static java.lang.String | JONAS_EJB_JAR_2_4_PUBLIC_IDPublic Id of the JOnAS-specific deployment descriptor DTD. | 
| protected static java.lang.String | JONAS_EJB_JAR_2_5_DTD | 
| protected static java.lang.String | JONAS_EJB_JAR_2_5_PUBLIC_ID | 
| protected static java.lang.String | OLD_GENIC_CLASS_1Old GenIC class name (JOnAS 2.4.x). | 
| protected static java.lang.String | OLD_GENIC_CLASS_2Old GenIC class name. | 
| protected static java.lang.String | RMI_ORBRMI ORB. | 
| 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, DEFAULT_BUFFER_SIZE, EJB_DD, JAR_COMPRESS_LEVEL, MANIFEST, META_DIR | 
| Constructor Summary | |
|---|---|
| JonasDeploymentTool() | |
| Method Summary | |
|---|---|
| protected  void | addVendorFiles(java.util.Hashtable ejbFiles,
               java.lang.String ddPrefix)Add any vendor specific files which should be included in the EJB Jar. | 
| protected  void | checkConfiguration(java.lang.String descriptorFileName,
                   javax.xml.parsers.SAXParser saxParser)Verify the configuration. | 
| protected  java.lang.String | getJarBaseName(java.lang.String descriptorFileName)Using the EJB descriptor file name passed from the ejbjartask, this method returns the "basename" which will be used to name the
 completed JAR file. | 
| protected  java.io.File | getVendorOutputJarFile(java.lang.String baseName)Get the vendor specific name of the Jar that will be output. | 
|  void | processDescriptor(java.lang.String aDescriptorName,
                  javax.xml.parsers.SAXParser saxParser)Process a deployment descriptor, generating the necessary vendor specific deployment files. | 
| protected  void | registerKnownDTDs(DescriptorHandler handler)Register the locations of all known DTDs. | 
|  void | setAdditionalargs(java.lang.String aString)Sets the additional arguments. | 
|  void | setJarsuffix(java.lang.String aString)Sets the jar suffix. | 
|  void | setJavac(java.lang.String aString)Sets the java compiler to use. | 
|  void | setJavacopts(java.lang.String aString)Set the options to pass to the java compiler. | 
|  void | setJonasroot(java.io.File aFile)Set the JOnAS root directory. | 
|  void | setKeepgenerated(boolean aBoolean)Sets the keepgeneratedflag. | 
|  void | setKeepgeneric(boolean aBoolean)Sets the keepgenericflag. | 
|  void | setNocompil(boolean aBoolean)Sets the nocompilflag. | 
|  void | setNogenic(boolean aBoolean)Sets the nogenicflag. | 
|  void | setNovalidation(boolean aBoolean)Sets the novalidationflag. | 
|  void | setOrb(java.lang.String aString)Sets the orbto construct classpath. | 
|  void | setRmicopts(java.lang.String aString)Set the options to pass to the rmi compiler. | 
|  void | setSecpropag(boolean aBoolean)Sets the secpropagflag. | 
|  void | setVerbose(boolean aBoolean)Sets the verboseflag. | 
| protected  void | writeJar(java.lang.String baseName,
         java.io.File jarfile,
         java.util.Hashtable ejbFiles,
         java.lang.String publicId)Method used to encapsulate the writing of the JAR file. | 
| Methods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool | 
|---|
| addFileToJar, addSupportClasses, checkAndAddDependants, configure, createClasspath, getClassLoaderForBuild, getCombinedClasspath, getConfig, getDescriptorHandler, getDestDir, getLocation, getManifestFile, getPublicId, getTask, getVendorDDPrefix, log, needToRebuild, parseEjbFiles, setClasspath, setDestdir, setGenericJarSuffix, setTask, usingBaseJarName, validateConfigured | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final java.lang.String EJB_JAR_1_1_PUBLIC_ID
protected static final java.lang.String EJB_JAR_2_0_PUBLIC_ID
protected static final java.lang.String JONAS_EJB_JAR_2_4_PUBLIC_ID
protected static final java.lang.String JONAS_EJB_JAR_2_5_PUBLIC_ID
protected static final java.lang.String RMI_ORB
protected static final java.lang.String JEREMIE_ORB
protected static final java.lang.String DAVID_ORB
protected static final java.lang.String EJB_JAR_1_1_DTD
protected static final java.lang.String EJB_JAR_2_0_DTD
protected static final java.lang.String JONAS_EJB_JAR_2_4_DTD
protected static final java.lang.String JONAS_EJB_JAR_2_5_DTD
protected static final java.lang.String JONAS_DD
protected static final java.lang.String GENIC_CLASS
protected static final java.lang.String OLD_GENIC_CLASS_1
protected static final java.lang.String OLD_GENIC_CLASS_2
| Constructor Detail | 
|---|
public JonasDeploymentTool()
| Method Detail | 
|---|
public void setKeepgenerated(boolean aBoolean)
keepgenerated flag.
aBoolean - true if the flag must be set.public void setAdditionalargs(java.lang.String aString)
aString - additional args.public void setNocompil(boolean aBoolean)
nocompil flag.
aBoolean - true if the flag must be set.public void setNovalidation(boolean aBoolean)
novalidation flag.
aBoolean - true if the flag must be set.public void setJavac(java.lang.String aString)
aString - the java compiler.public void setJavacopts(java.lang.String aString)
aString - the options.public void setRmicopts(java.lang.String aString)
aString - the options.public void setSecpropag(boolean aBoolean)
secpropag flag.
aBoolean - true if the flag must be set.public void setVerbose(boolean aBoolean)
verbose flag.
aBoolean - true if the flag must be set.public void setJonasroot(java.io.File aFile)
aFile - the JOnAS root directory.public void setKeepgeneric(boolean aBoolean)
keepgeneric flag.
aBoolean - true if the flag must be set.public void setJarsuffix(java.lang.String aString)
aString - the string to use as the suffix.public void setOrb(java.lang.String aString)
orb to construct classpath.
aString - 'RMI', 'JEREMIE', or 'DAVID'.public void setNogenic(boolean aBoolean)
nogenic flag.
aBoolean - true if the flag must be set.
public void processDescriptor(java.lang.String aDescriptorName,
                              javax.xml.parsers.SAXParser saxParser)
processDescriptor in interface EJBDeploymentToolprocessDescriptor in class GenericDeploymentToolaDescriptorName - the name of the deployment descriptorsaxParser - a SAX parser which can be used to parse the deployment descriptor.
protected void writeJar(java.lang.String baseName,
                        java.io.File jarfile,
                        java.util.Hashtable ejbFiles,
                        java.lang.String publicId)
                 throws BuildException
writeJar in class GenericDeploymentToolbaseName - 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.
BuildException - if there is a problem.
protected void addVendorFiles(java.util.Hashtable ejbFiles,
                              java.lang.String ddPrefix)
addVendorFiles in class GenericDeploymentToolejbFiles - a hashtable entryname -> file.ddPrefix - a prefix to use.protected java.io.File getVendorOutputJarFile(java.lang.String baseName)
baseName - the basename to use.protected java.lang.String getJarBaseName(java.lang.String descriptorFileName)
ejbjar
 task, this method returns the "basename" which will be used to name the
 completed JAR file..
getJarBaseName in class GenericDeploymentTooldescriptorFileName - String representing the file name of an EJB
                           descriptor to be processed
protected void registerKnownDTDs(DescriptorHandler handler)
registerKnownDTDs in class GenericDeploymentToolhandler - no used in this class.
protected void checkConfiguration(java.lang.String descriptorFileName,
                                  javax.xml.parsers.SAXParser saxParser)
                           throws BuildException
checkConfiguration in class GenericDeploymentTooldescriptorFileName - the name of the descriptor file.saxParser - not used.
BuildException - if there is an error.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||