|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.generators.genbase.archive.J2EEArchive
org.ow2.jonas.generators.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(File classes)
Add *.class from directory in the archive. |
Application |
getApplication()
Return the container application of this EjbJar |
String |
getContextRoot()
|
Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
List |
getEjbs()
Returns the List of Ejb contained in this EjbJar. |
Document |
getJonasEjbJarDoc()
Returns the Document of the jonas-ejb-jar.xml file. |
InputStream |
getJonasEjbJarInputStream()
Returns the InputStream of the jonas-ejb-jar.xml file. |
Document |
getJonasWebservicesDoc()
Return the Document of the the jonas-webservices.xml |
InputStream |
getJonasWebservicesInputStream()
Returns the InputStream of the jonas-webservices.xml file. |
List |
getServiceDescs()
Returns the list of webservice-description elements contained by a module. |
String |
getWarName()
|
void |
initialize()
Initialize the Archive. |
boolean |
omit(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.ow2.jonas.generators.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 fails
public EjbJar(Archive archive,
Application app)
throws GenBaseException
archive - the archive fileapp - container application
GenBaseException - When init fails| Method Detail |
|---|
public void initialize()
throws GenBaseException
initialize in class J2EEArchiveGenBaseException - When initialization fails.public List getEjbs()
public List getServiceDescs()
getServiceDescs in interface WsEndpointpublic void addClasses(File classes)
classes - directory containing classes files.public String getWarName()
public String getContextRoot()
getContextRoot in interface WsEndpointpublic void setApplication(Application app)
app - container applicationpublic Application getApplication()
public Map getDescriptors()
getDescriptors in class J2EEArchivepublic boolean omit(String name)
omit in class J2EEArchivename - filename to be tested
public Document getJonasEjbJarDoc()
public Document getJonasWebservicesDoc()
public InputStream getJonasEjbJarInputStream()
throws IOException
IOException - if stream is invalid
public InputStream getJonasWebservicesInputStream()
throws IOException
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 | |||||||||