org.codehaus.cargo.module.ejb
Class DefaultEjbArchive

java.lang.Object
  extended byorg.codehaus.cargo.module.DefaultJarArchive
      extended byorg.codehaus.cargo.module.ejb.DefaultEjbArchive
All Implemented Interfaces:
EjbArchive, JarArchive

public class DefaultEjbArchive
extends DefaultJarArchive
implements EjbArchive

Class that encapsulates access to an EJB JAR.

Version:
$Id: DefaultEjbArchive.java 1158 2006-07-29 10:55:48Z vmassol $

Constructor Summary
DefaultEjbArchive(java.io.InputStream theInputStream)
          Constructor.
DefaultEjbArchive(java.lang.String file)
          {@inheritDoc}
 
Method Summary
 EjbJarXml getEjbJarXml()
          Return the ejb-jar.xml.
 
Methods inherited from class org.codehaus.cargo.module.DefaultJarArchive
containsClass, expandToPath, findResource, getContentAsStream, getFileHandler, getResource, getResources, setFileHandler, streamToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.module.JarArchive
containsClass, expandToPath, findResource, getResource, getResources
 

Constructor Detail

DefaultEjbArchive

public DefaultEjbArchive(java.lang.String file)
{@inheritDoc}

See Also:
DefaultJarArchive.DefaultJarArchive(String)

DefaultEjbArchive

public DefaultEjbArchive(java.io.InputStream theInputStream)
                  throws java.io.IOException
Constructor.

Parameters:
theInputStream - The input stream for the enterprise application archive
Throws:
java.io.IOException - If there was a problem reading the EJB
Method Detail

getEjbJarXml

public final EjbJarXml getEjbJarXml()
                             throws java.io.IOException,
                                    org.xml.sax.SAXException,
                                    javax.xml.parsers.ParserConfigurationException
Return the ejb-jar.xml.

Specified by:
getEjbJarXml in interface EjbArchive
Returns:
the EjbJarXml
Throws:
org.xml.sax.SAXException - If the deployment descriptor of the EAR could not be parsed
java.io.IOException - If there was a problem reading the deployment descriptor in the EAR
javax.xml.parsers.ParserConfigurationException - If there is an XML parser configration problem
See Also:
EjbArchive.getEjbJarXml()


Copyright © 2004-2007 Codehaus. All Rights Reserved.