|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_lib.genbase.archive.J2EEArchive org.objectweb.jonas_lib.genbase.archive.EjbJar
public class EjbJar
EjbJar represents an EjbJar J2EE Archive.
Constructor Summary | |
---|---|
EjbJar(Archive archive)
Create a new EjbJar not contained in Application |
|
EjbJar(Archive archive,
Application app)
Create a new EjbJar contained in Application |
Method Summary | |
---|---|
void |
addClasses(java.io.File classes)
Add *.class from directory in the archive. |
Application |
getApplication()
Return the container application of this EjbJar |
java.lang.String |
getContextRoot()
|
java.util.Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
java.util.List |
getEjbs()
Returns the List of Ejb contained in this EjbJar. |
org.w3c.dom.Document |
getJonasEjbJarDoc()
Returns the Document of the jonas-ejb-jar.xml file. |
java.io.InputStream |
getJonasEjbJarInputStream()
Returns the InputStream of the jonas-ejb-jar.xml file. |
org.w3c.dom.Document |
getJonasWebservicesDoc()
Return the Document of the the jonas-webservices.xml |
java.io.InputStream |
getJonasWebservicesInputStream()
Returns the InputStream of the jonas-webservices.xml file. |
java.util.List |
getServiceDescs()
Returns the list of webservice-description elements contained by a module. |
java.lang.String |
getWarName()
|
void |
initialize()
Initialize the Archive. |
boolean |
omit(java.lang.String name)
Returns true if filename must be omitted in the archive. |
void |
setApplication(Application app)
Set the container application of this EjbJar |
Methods inherited from class org.objectweb.jonas_lib.genbase.archive.J2EEArchive |
---|
addDirectory, addDirectoryIn, addFile, addFile, addFileIn, close, getArchive, getContainedFiles, getI18n, getInputStream, getLogger, getManifest, getModuleClassloader, getName, getRootFile, isDTDsAllowed, isPacked, setArchive, setModuleClassloader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EjbJar(Archive archive) throws GenBaseException
archive
- the archive file
GenBaseException
- When init failspublic EjbJar(Archive archive, Application app) throws GenBaseException
archive
- the archive fileapp
- container application
GenBaseException
- When init failsMethod Detail |
---|
public void initialize() throws GenBaseException
initialize
in class J2EEArchive
GenBaseException
- When initialization fails.public java.util.List getEjbs()
public java.util.List getServiceDescs()
getServiceDescs
in interface WsEndpoint
public void addClasses(java.io.File classes)
classes
- directory containing classes files.public java.lang.String getWarName()
public java.lang.String getContextRoot()
getContextRoot
in interface WsEndpoint
public void setApplication(Application app)
app
- container applicationpublic Application getApplication()
public java.util.Map getDescriptors()
getDescriptors
in class J2EEArchive
public boolean omit(java.lang.String name)
omit
in class J2EEArchive
name
- filename to be tested
public org.w3c.dom.Document getJonasEjbJarDoc()
public org.w3c.dom.Document getJonasWebservicesDoc()
public java.io.InputStream getJonasEjbJarInputStream() throws java.io.IOException
java.io.IOException
- When InputStream of jonas-ejb-jar.xml cannot be returnedpublic java.io.InputStream getJonasWebservicesInputStream() throws java.io.IOException
java.io.IOException
- When InputStream of jonas-webservices.xml cannot be returned
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |