|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.generators.genbase.archive.J2EEArchive org.ow2.jonas.generators.genbase.archive.Application
public class Application
Application is a wrapper around an ear (packaged as a jar or as an unpacked jar).
Constructor Summary | |
---|---|
Application(Archive archive,
org.ow2.util.ee.deploy.api.deployable.IDeployable deployable)
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,
String context)
Add a new WebApp in the Application. |
void |
close()
Close this archive |
Document |
getApp()
|
Document |
getApplicationDoc()
Returns the Document of the application.xml file. |
InputStream |
getApplicationInputStream()
Returns the InputStream of the application.xml file. |
Iterator |
getClients()
Returns the Iterator of WebApp contained in this Application. |
Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
URLClassLoader |
getEARClassLoader()
Returns the ClassLoader of this ear archive. |
URLClassLoader |
getEJBClassLoader()
Returns the ClassLoader of the ejbs within this archive. |
Iterator |
getEjbJars()
Returns the Iterator of EjbJar contained in this Application. |
String |
getName()
Returns the name of the Archive. |
Iterator |
getWebApps()
Returns the Iterator of WebApp contained in this Application. |
protected void |
init()
Initialize the Application. |
void |
initialize()
Initialize the Archive. |
protected void |
loadDescriptors()
Load Deployment Descriptor of an Application. |
boolean |
omit(String name)
Returns true if filename must be omitted in the archive. |
void |
setClients(List clients)
|
void |
setEjbjars(List ejbjars)
|
void |
setWebapps(List webapps)
|
Methods inherited from class org.ow2.jonas.generators.genbase.archive.J2EEArchive |
---|
addDirectory, addDirectoryIn, addFile, addFile, addFileIn, getArchive, getContainedFiles, getI18n, getInputStream, getLogger, getManifest, getModuleClassloader, 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 Application(Archive archive, org.ow2.util.ee.deploy.api.deployable.IDeployable deployable) throws GenBaseException
archive
- the file containing the application archive.
GenBaseException
- When Init failsMethod Detail |
---|
protected void init() throws GenBaseException
GenBaseException
- When application unpack fails or when Decriptors
cannot be parsed or found.protected void loadDescriptors() throws GenBaseException
GenBaseException
- When parsing of application.xml failspublic void initialize() throws GenBaseException
initialize
in class J2EEArchive
GenBaseException
- When initialization fails.public String getName()
getName
in interface Archive
getName
in class J2EEArchive
J2EEArchive.getName()
public Document getApplicationDoc()
public InputStream getApplicationInputStream() throws IOException
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, String context)
webapp
- the added webappcontext
- context of the webapppublic Iterator getEjbJars()
public Iterator getWebApps()
public Iterator getClients()
public URLClassLoader getEARClassLoader()
public URLClassLoader getEJBClassLoader()
public Map getDescriptors()
getDescriptors
in class J2EEArchive
public boolean omit(String name)
omit
in class J2EEArchive
name
- filename to be tested
public void setClients(List clients)
clients
- The clients to set.public void setEjbjars(List ejbjars)
ejbjars
- The ejbjars to set.public void setWebapps(List webapps)
webapps
- The webapps to set.public Document getApp()
public void close()
close
in interface Archive
close
in class J2EEArchive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |