public class JonasDeploymentTool extends GenericDeploymentTool
EjbJar.createJonas()
Modifier and Type | Field and Description |
---|---|
protected static String |
DAVID_ORB
DAVID ORB.
|
protected static 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 String |
EJB_JAR_1_1_PUBLIC_ID
Public Id of the standard deployment descriptor DTD.
|
protected static String |
EJB_JAR_2_0_DTD |
protected static String |
EJB_JAR_2_0_PUBLIC_ID |
protected static String |
GENIC_CLASS
GenIC class name (JOnAS 2.5)
|
protected static String |
JEREMIE_ORB
JEREMIE ORB.
|
protected static String |
JONAS_DD
Default JOnAS deployment descriptor name.
|
protected static 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 String |
JONAS_EJB_JAR_2_4_PUBLIC_ID
Public Id of the JOnAS-specific deployment descriptor DTD.
|
protected static String |
JONAS_EJB_JAR_2_5_DTD |
protected static String |
JONAS_EJB_JAR_2_5_PUBLIC_ID |
protected static String |
OLD_GENIC_CLASS_1
Old GenIC class name (JOnAS 2.4.x).
|
protected static String |
OLD_GENIC_CLASS_2
Old GenIC class name.
|
protected static String |
RMI_ORB
RMI ORB.
|
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 and Description |
---|
JonasDeploymentTool() |
Modifier and Type | Method and Description |
---|---|
protected void |
addVendorFiles(Hashtable ejbFiles,
String ddPrefix)
Add any vendor specific files which should be included in the
EJB Jar.
|
protected void |
checkConfiguration(String descriptorFileName,
javax.xml.parsers.SAXParser saxParser)
Verify the configuration.
|
protected String |
getJarBaseName(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. |
protected File |
getVendorOutputJarFile(String baseName)
Get the vendor specific name of the Jar that will be output.
|
void |
processDescriptor(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(String aString)
Sets the additional arguments.
|
void |
setJarsuffix(String aString)
Sets the jar suffix.
|
void |
setJavac(String aString)
Sets the java compiler to use.
|
void |
setJavacopts(String aString)
Set the options to pass to the java compiler.
|
void |
setJonasroot(File aFile)
Set the JOnAS root directory.
|
void |
setKeepgenerated(boolean aBoolean)
Sets the
keepgenerated flag. |
void |
setKeepgeneric(boolean aBoolean)
Sets the
keepgeneric flag. |
void |
setNocompil(boolean aBoolean)
Sets the
nocompil flag. |
void |
setNogenic(boolean aBoolean)
Sets the
nogenic flag. |
void |
setNovalidation(boolean aBoolean)
Sets the
novalidation flag. |
void |
setOrb(String aString)
Sets the
orb to construct classpath. |
void |
setRmicopts(String aString)
Set the options to pass to the rmi compiler.
|
void |
setSecpropag(boolean aBoolean)
Sets the
secpropag flag. |
void |
setVerbose(boolean aBoolean)
Sets the
verbose flag. |
protected void |
writeJar(String baseName,
File jarfile,
Hashtable ejbFiles,
String publicId)
Method used to encapsulate the writing of the JAR file.
|
addFileToJar, addSupportClasses, checkAndAddDependants, configure, createClasspath, getClassLoaderForBuild, getCombinedClasspath, getConfig, getDescriptorHandler, getDestDir, getLocation, getManifestFile, getPublicId, getTask, getVendorDDPrefix, log, needToRebuild, parseEjbFiles, setClasspath, setDestdir, setGenericJarSuffix, setTask, usingBaseJarName, validateConfigured
protected static final String DAVID_ORB
protected static final String EJB_JAR_1_1_DTD
protected static final String EJB_JAR_1_1_PUBLIC_ID
protected static final String EJB_JAR_2_0_DTD
protected static final String EJB_JAR_2_0_PUBLIC_ID
protected static final String GENIC_CLASS
protected static final String JEREMIE_ORB
protected static final String JONAS_DD
protected static final String JONAS_EJB_JAR_2_4_DTD
protected static final String JONAS_EJB_JAR_2_4_PUBLIC_ID
protected static final String JONAS_EJB_JAR_2_5_DTD
protected static final String JONAS_EJB_JAR_2_5_PUBLIC_ID
protected static final String OLD_GENIC_CLASS_1
protected static final String OLD_GENIC_CLASS_2
protected static final String RMI_ORB
protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix)
addVendorFiles
in class GenericDeploymentTool
ejbFiles
- a hashtable entryname -> file.ddPrefix
- a prefix to use.protected void checkConfiguration(String descriptorFileName, javax.xml.parsers.SAXParser saxParser) throws BuildException
checkConfiguration
in class GenericDeploymentTool
descriptorFileName
- the name of the descriptor file.saxParser
- not used.BuildException
- if there is an error.protected String getJarBaseName(String descriptorFileName)
ejbjar
task, this method returns the "basename" which will be used to name the
completed JAR file..getJarBaseName
in class GenericDeploymentTool
descriptorFileName
- String representing the file name of an EJB
descriptor to be processedprotected File getVendorOutputJarFile(String baseName)
baseName
- the basename to use.public void processDescriptor(String aDescriptorName, javax.xml.parsers.SAXParser saxParser)
processDescriptor
in interface EJBDeploymentTool
processDescriptor
in class GenericDeploymentTool
aDescriptorName
- the name of the deployment descriptorsaxParser
- a SAX parser which can be used to parse the deployment descriptor.protected void registerKnownDTDs(DescriptorHandler handler)
registerKnownDTDs
in class GenericDeploymentTool
handler
- no used in this class.public void setAdditionalargs(String aString)
aString
- additional args.public void setJarsuffix(String aString)
aString
- the string to use as the suffix.public void setJavac(String aString)
aString
- the java compiler.public void setJavacopts(String aString)
aString
- the options.public void setJonasroot(File aFile)
aFile
- the JOnAS root directory.public void setKeepgenerated(boolean aBoolean)
keepgenerated
flag.aBoolean
- true
if the flag must be set.public void setKeepgeneric(boolean aBoolean)
keepgeneric
flag.aBoolean
- true
if the flag must be set.public void setNocompil(boolean aBoolean)
nocompil
flag.aBoolean
- true
if the flag must be set.public void setNogenic(boolean aBoolean)
nogenic
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 setOrb(String aString)
orb
to construct classpath.aString
- 'RMI', 'JEREMIE', or 'DAVID'.public void setRmicopts(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.protected void writeJar(String baseName, File jarfile, Hashtable ejbFiles, String publicId) throws BuildException
writeJar
in class GenericDeploymentTool
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.BuildException
- if there is a problem.