EjbJar#createJonas
| Modifier and Type | Field and Description |
|---|---|
| private String | additionalargs
Additional args to send to GenIC. |
| protected static final String | DAVID_ORB
DAVID ORB. |
| private String | descriptorName
Filename of the standard EJB descriptor (which is passed to this class from the parent "ejbjar" task). |
| protected static final String | EJB_JAR_1_1_DTD
Name of the standard deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory). |
| protected static final String | EJB_JAR_1_1_PUBLIC_ID
Public Id of the standard deployment descriptor DTD. |
| protected static final String | |
| protected static final String | |
| protected static final String | GENIC_CLASS
GenIC class name (JOnAS 2.5) |
| private String | javac
Java compiler to use. |
| private String | javacopts
Options to pass to the java compiler. |
| protected static final String | JEREMIE_ORB
JEREMIE ORB. |
| protected static final String | JONAS_DD
Default JOnAS deployment descriptor name. |
| protected static final String | JONAS_EJB_JAR_2_4_DTD
Name of the JOnAS-specific deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory). |
| protected static final String | JONAS_EJB_JAR_2_4_PUBLIC_ID
Public Id of the JOnAS-specific deployment descriptor DTD. |
| protected static final String | |
| protected static final String | |
| private String | jonasDescriptorName
Filename of the JOnAS-specific EJB descriptor (which is passed to this class from the parent "ejbjar" task). |
| private File | jonasroot
JOnAS root directory. |
| private boolean | keepgenerated
|
| private boolean | keepgeneric
|
| private boolean | nocompil
|
| private boolean | nogenic
|
| private boolean | novalidation
|
| protected static final String | OLD_GENIC_CLASS_1
Old GenIC class name (JOnAS 2.4.x). |
| protected static final String | OLD_GENIC_CLASS_2
Old GenIC class name. |
| private String | orb
ORB to use (RMI, JEREMIE or DAVID). |
| private File | outputdir
Temporary output directory used by GenIC. |
| protected static final String | RMI_ORB
RMI ORB. |
| private String | rmicopts
Options to pass to the rmi compiler. |
| private boolean | secpropag
Whether or not the RMI skeleton and stub must be modified to implement the implicit propagation of the security context (the transactional context is always provided). |
| private String | suffix
Stores the suffix for the JOnAS JAR file. |
| private boolean | verbose
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | addGenICGeneratedFiles(File
jar file. genericJarFile, Hashtable<String, File> the hashtable. ejbFiles)Add to the given hashtable all the file generated by GenIC. |
| protected void | addVendorFiles(Hashtable<String, File>
a hashtable entryname -> file. ejbFiles, String a prefix to use. ddPrefix)Overrides org. |
| protected void | checkConfiguration(String
the name of the descriptor file. descriptorFileName, SAXParser not used. saxParser)Overrides org. |
| private File | |
| private void | |
| pack-priv String | Returns: the GenIC class name. Returnnull if the class name
cannot be found.classpath where the GenIC class must be searched. classpath)Get the GenIC class name to use in the given classpath. |
| protected String | getJarBaseName(String
String representing the file name of an EJB
descriptor to be processed descriptorFileName)Overrides org. ejbjar
task, this method returns the "basename" which will be used to name the
completed JAR file..
|
| private String | Returns: The name of the JOnAS-specific EJB descriptor file.Determines the name of the JOnAS-specific EJB descriptor using the specified standard EJB descriptor name. |
| protected File | getVendorOutputJarFile(String
the basename to use. baseName)Overrides org. |
| public void | processDescriptor(String
the name of the deployment descriptor aDescriptorName, SAXParser a SAX parser which can be used to parse the deployment descriptor. saxParser)Overrides org. Implements org. |
| protected void | registerKnownDTDs(DescriptorHandler
no used in this class. handler)Overrides org.
Deprecated
as a consequence of
Register the locations of all known DTDs.
DescriptorHandler being deprecated.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | writeJar(String
the base name to use. baseName, File the jar file to write to. jarfile, Hashtable<String, File> the files to write to the jar. ejbFiles, String the id to use. publicId)Overrides org. |
| additionalargs | back to summary |
|---|---|
| private String additionalargs Additional args to send to GenIC. | |
| DAVID_ORB | back to summary |
|---|---|
| protected static final String DAVID_ORB DAVID ORB. | |
| descriptorName | back to summary |
|---|---|
| private String descriptorName Filename of the standard EJB descriptor (which is passed to this class from the parent "ejbjar" task). This file is relative to the directory specified by the "srcdir" attribute in the ejbjar task. | |
| EJB_JAR_1_1_DTD | back to summary |
|---|---|
| protected static final String EJB_JAR_1_1_DTD Name of the standard deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory). | |
| EJB_JAR_1_1_PUBLIC_ID | back to summary |
|---|---|
| protected static final String EJB_JAR_1_1_PUBLIC_ID Public Id of the standard deployment descriptor DTD. | |
| EJB_JAR_2_0_DTD | back to summary |
|---|---|
| protected static final String EJB_JAR_2_0_DTD | |
| EJB_JAR_2_0_PUBLIC_ID | back to summary |
|---|---|
| protected static final String EJB_JAR_2_0_PUBLIC_ID | |
| GENIC_CLASS | back to summary |
|---|---|
| protected static final String GENIC_CLASS GenIC class name (JOnAS 2.5) | |
| javac | back to summary |
|---|---|
| private String javac Java compiler to use. The default is the value of
| |
| javacopts | back to summary |
|---|---|
| private String javacopts Options to pass to the java compiler. | |
| JEREMIE_ORB | back to summary |
|---|---|
| protected static final String JEREMIE_ORB JEREMIE ORB. | |
| JONAS_DD | back to summary |
|---|---|
| protected static final String JONAS_DD Default JOnAS deployment descriptor name. | |
| JONAS_EJB_JAR_2_4_DTD | back to summary |
|---|---|
| protected static final String JONAS_EJB_JAR_2_4_DTD Name of the JOnAS-specific deployment descriptor DTD (these files are stored in the ${JONAS_ROOT}/xml directory). | |
| JONAS_EJB_JAR_2_4_PUBLIC_ID | back to summary |
|---|---|
| protected static final String JONAS_EJB_JAR_2_4_PUBLIC_ID Public Id of the JOnAS-specific deployment descriptor DTD. | |
| JONAS_EJB_JAR_2_5_DTD | back to summary |
|---|---|
| protected static final String JONAS_EJB_JAR_2_5_DTD | |
| JONAS_EJB_JAR_2_5_PUBLIC_ID | back to summary |
|---|---|
| protected static final String JONAS_EJB_JAR_2_5_PUBLIC_ID | |
| jonasDescriptorName | back to summary |
|---|---|
| private String jonasDescriptorName Filename of the JOnAS-specific EJB descriptor (which is passed to this class from the parent "ejbjar" task). This file is relative to the directory specified by the "srcdir" attribute in the ejbjar task. | |
| jonasroot | back to summary |
|---|---|
| private File jonasroot JOnAS root directory. | |
| keepgenerated | back to summary |
|---|---|
| private boolean keepgenerated
| |
| keepgeneric | back to summary |
|---|---|
| private boolean keepgeneric
| |
| nocompil | back to summary |
|---|---|
| private boolean nocompil
| |
| nogenic | back to summary |
|---|---|
| private boolean nogenic
| |
| novalidation | back to summary |
|---|---|
| private boolean novalidation
| |
| OLD_GENIC_CLASS_1 | back to summary |
|---|---|
| protected static final String OLD_GENIC_CLASS_1 Old GenIC class name (JOnAS 2.4.x). | |
| OLD_GENIC_CLASS_2 | back to summary |
|---|---|
| protected static final String OLD_GENIC_CLASS_2 Old GenIC class name. | |
| orb | back to summary |
|---|---|
| private String orb ORB to use (RMI, JEREMIE or DAVID). If omitted, it defaults to the one present in classpath. If specified, the corresponding JOnAS JAR is automatically added to the classpath. | |
| outputdir | back to summary |
|---|---|
| private File outputdir Temporary output directory used by GenIC. | |
| RMI_ORB | back to summary |
|---|---|
| protected static final String RMI_ORB RMI ORB. | |
| rmicopts | back to summary |
|---|---|
| private String rmicopts Options to pass to the rmi compiler. | |
| secpropag | back to summary |
|---|---|
| private boolean secpropag Whether or not the RMI skeleton and stub must be modified to
implement the implicit propagation of the security context (the
transactional context is always provided). The default is
| |
| suffix | back to summary |
|---|---|
| private String suffix Stores the suffix for the JOnAS JAR file. The default is '.jar'. | |
| verbose | back to summary |
|---|---|
| private boolean verbose
| |
| JonasDeploymentTool | back to summary |
|---|---|
| public JonasDeploymentTool() | |
| addAllFiles | back to summary |
|---|---|
| private void addAllFiles(File file, String rootDir, Hashtable<String, File> hashtable) Add a file to the a given hashtable. If the file is a directory, add recursivly all the files inside to the hashtable. | |
| addGenICGeneratedFiles | back to summary |
|---|---|
| private void addGenICGeneratedFiles(File genericJarFile, Hashtable<String, File> ejbFiles) Add to the given hashtable all the file generated by GenIC. | |
| addVendorFiles | back to summary |
|---|---|
| protected void addVendorFiles(Hashtable<String, File> ejbFiles, String ddPrefix) Overrides org. Doc from org. Add any vendor specific files which should be included in the EJB Jar.. | |
| checkConfiguration | back to summary |
|---|---|
| protected void checkConfiguration(String descriptorFileName, SAXParser saxParser) throws BuildException Overrides org. Verify the configuration.
| |
| createTempDir | back to summary |
|---|---|
| private File createTempDir() throws IOException Create a temporary directory for GenIC output.
| |
| deleteAllFiles | back to summary |
|---|---|
| private void deleteAllFiles(File aFile) Delete a file. If the file is a directory, delete recursively all the files inside.
| |
| getGenicClassName | back to summary |
|---|---|
| pack-priv String getGenicClassName(Path classpath) Get the GenIC class name to use in the given classpath. | |
| getJarBaseName | back to summary |
|---|---|
| protected String getJarBaseName(String descriptorFileName) Overrides org. Doc from org. Using the EJB descriptor file name passed from the | |
| getJonasDescriptorName | back to summary |
|---|---|
| private String getJonasDescriptorName() Determines the name of the JOnAS-specific EJB descriptor using the specified standard EJB descriptor name. In general, the standard descriptor will be named "[basename]-ejb-jar.xml", and this method will return "[basename]-jonas-ejb-jar.xml" or "jonas-[basename].xml"
| |
| getVendorOutputJarFile | back to summary |
|---|---|
| protected File getVendorOutputJarFile(String baseName) Overrides org. Doc from org. 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.. | |
| processDescriptor | back to summary |
|---|---|
| public void processDescriptor(String aDescriptorName, SAXParser saxParser) Overrides org. Implements org. Doc from org. Process a deployment descriptor, generating the necessary vendor specific deployment files...
| |
| registerKnownDTDs | back to summary |
|---|---|
| protected void registerKnownDTDs(DescriptorHandler handler) Overrides org. Doc from org. Deprecated as a consequence of Register the locations of all known DTDs. vendor-specific subclasses should override this method to define the vendor-specific locations of the EJB DTDs.
| |
| setAdditionalargs | back to summary |
|---|---|
| public void setAdditionalargs(String aString) Sets the additional arguments.
| |
| setJarsuffix | back to summary |
|---|---|
| public void setJarsuffix(String aString) Sets the jar suffix.
| |
| setJavac | back to summary |
|---|---|
| public void setJavac(String aString) Sets the java compiler to use.
| |
| setJavacopts | back to summary |
|---|---|
| public void setJavacopts(String aString) Set the options to pass to the java compiler.
| |
| setJonasroot | back to summary |
|---|---|
| public void setJonasroot(File aFile) Set the JOnAS root directory.
| |
| setKeepgenerated | back to summary |
|---|---|
| public void setKeepgenerated(boolean aBoolean) Sets the
| |
| setKeepgeneric | back to summary |
|---|---|
| public void setKeepgeneric(boolean aBoolean) Sets the
| |
| setNocompil | back to summary |
|---|---|
| public void setNocompil(boolean aBoolean) Sets the
| |
| setNogenic | back to summary |
|---|---|
| public void setNogenic(boolean aBoolean) Sets the
| |
| setNovalidation | back to summary |
|---|---|
| public void setNovalidation(boolean aBoolean) Sets the
| |
| setOrb | back to summary |
|---|---|
| public void setOrb(String aString) Sets the
| |
| setRmicopts | back to summary |
|---|---|
| public void setRmicopts(String aString) Set the options to pass to the rmi compiler.
| |
| setSecpropag | back to summary |
|---|---|
| public void setSecpropag(boolean aBoolean) Sets the
| |
| setVerbose | back to summary |
|---|---|
| public void setVerbose(boolean aBoolean) Sets the
| |
| writeJar | back to summary |
|---|---|
| protected void writeJar(String baseName, File jarfile, Hashtable<String, File> ejbFiles, String publicId) throws BuildException Overrides org. Doc from org. 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.. | |