|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ws.wsgen.archive.J2EEArchive
org.objectweb.jonas_ws.wsgen.archive.Application
Application is a wrapper around an ear (packaged as a jar or as an unpacked jar).
Field Summary | |
protected org.w3c.dom.Document |
app
application Descriptor |
protected java.util.List |
clients
list of embded clients archive. |
protected java.net.URLClassLoader |
commonCL
Common Libs ClassLoader |
protected java.net.URLClassLoader |
earCL
Common ClassLoader for Application |
protected java.net.URLClassLoader |
ejbCL
EJB Jar ClassLoader |
protected java.util.List |
ejbjars
list of embded ejbjars archive. |
protected java.util.List |
pathFiles
libs path File |
protected java.util.List |
webapps
list of embded webapps archive. |
Fields inherited from class org.objectweb.jonas_ws.wsgen.archive.J2EEArchive |
archive, i18n, logger |
Constructor Summary | |
Application(Archive archive)
Creates a new Application archive. |
Method Summary | |
void |
addClient(Client client)
Add a new Client in the Application. |
void |
addEjbJar(EjbJar ejbjar)
Add a new EjbJar in the Application. |
void |
addWebApp(WebApp webapp,
java.lang.String context)
Add a new WebApp in the Application. |
org.w3c.dom.Document |
getApplicationDoc()
Returns the Document of the application.xml file. |
java.io.InputStream |
getApplicationInputStream()
Returns the InputStream of the application.xml file. |
java.util.Iterator |
getClients()
Returns the Iterator of WebApp contained in this Application. |
java.util.Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
java.net.URLClassLoader |
getEARClassLoader()
Returns the ClassLoader of this ear archive. |
java.net.URLClassLoader |
getEJBClassLoader()
Returns the ClassLoader of the ejbs within this archive. |
java.util.Iterator |
getEjbJars()
Returns the Iterator of EjbJar contained in this Application. |
java.lang.String |
getName()
Returns the name of the Archive. |
java.util.Iterator |
getWebApps()
Returns the Iterator of WebApp contained in this Application. |
protected void |
init()
Initialize the Application. |
protected void |
loadDescriptors()
Load Deployment Descriptor of an Application. |
boolean |
omit(java.lang.String name)
Returns true if filename must be omitted in the archive. |
Methods inherited from class org.objectweb.jonas_ws.wsgen.archive.J2EEArchive |
addDirectory, addDirectoryIn, addFile, addFile, addFileIn, getContainedFiles, getInputStream, getManifest, getRootFile, isPacked |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List clients
protected java.util.List webapps
protected java.util.List ejbjars
protected org.w3c.dom.Document app
protected java.net.URLClassLoader earCL
protected java.net.URLClassLoader ejbCL
protected java.net.URLClassLoader commonCL
protected java.util.List pathFiles
Constructor Detail |
public Application(Archive archive) throws WsGenException
archive
- the file containing the application archive.
WsGenException
- When Init failsMethod Detail |
protected void init() throws WsGenException
WsGenException
- When application unpack fails or
when Decriptors cannot be parsed or found.protected void loadDescriptors() throws WsGenException
WsGenException
- When parsing of application.xml failspublic java.lang.String getName()
getName
in interface Archive
getName
in class J2EEArchive
J2EEArchive.getName()
public org.w3c.dom.Document getApplicationDoc()
public java.io.InputStream getApplicationInputStream() throws java.io.IOException
java.io.IOException
- When InputStream of application.xml cannot be returnedpublic void addEjbJar(EjbJar ejbjar)
ejbjar
- the added EjbJarpublic void addClient(Client client)
client
- the added Clientpublic void addWebApp(WebApp webapp, java.lang.String context)
webapp
- the added webappcontext
- context of the webapppublic java.util.Iterator getEjbJars()
public java.util.Iterator getWebApps()
public java.util.Iterator getClients()
public java.net.URLClassLoader getEARClassLoader()
public java.net.URLClassLoader getEJBClassLoader()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |