Package org.codehaus.cargo.module.ejb
Class DefaultEjbArchive
- java.lang.Object
-
- org.codehaus.cargo.module.DefaultJarArchive
-
- org.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.
-
-
Constructor Summary
Constructors Constructor Description DefaultEjbArchive(InputStream theInputStream)
Constructor.DefaultEjbArchive(String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(String file)
- See Also:
DefaultJarArchive(String)
-
DefaultEjbArchive
public DefaultEjbArchive(InputStream theInputStream) throws IOException
Constructor.- Parameters:
theInputStream
- The input stream for the enterprise application archive- Throws:
IOException
- If there was a problem reading the EJB
-
-
Method Detail
-
getEjbJarXml
public EjbJarXml getEjbJarXml() throws IOException, org.jdom2.JDOMException
Return the ejb-jar.xml.- Specified by:
getEjbJarXml
in interfaceEjbArchive
- Returns:
- the EjbJarXml
- Throws:
IOException
- If there was a problem reading the deployment descriptor in the EARorg.jdom2.JDOMException
- If there is a problem with the XML
-
-