|
||||||||||
| 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.Client
public class Client
Client represnets a J2EE Client Archive.
| Constructor Summary | |
|---|---|
Client(Archive archive)
Create a new Client not contained in Application |
|
Client(Archive archive,
Application app)
Create a new Client contained in Application |
|
| Method Summary | |
|---|---|
void |
addClasses(File classes)
add *.class from directory in the archive. |
void |
close()
Close this archive |
Application |
getApplication()
Returns the container application (can be null). |
Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
List |
getEjbRefDescs()
Returns the list of ejb-ref elements contained by a module. |
Document |
getJonasClientDoc()
Returns the Document of the jonas-client.xml file. |
InputStream |
getJonasClientInputStream()
Returns the InputStream of the jonas-client.xml file. |
List |
getServiceRefDescs()
Returns the list of service-ref elements contained by a module. |
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. |
| Methods inherited from class org.ow2.jonas.generators.genbase.archive.J2EEArchive |
|---|
addDirectory, addDirectoryIn, addFile, addFile, addFileIn, 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 Client(Archive archive)
throws GenBaseException
archive - the archive file
GenBaseException - When Init fails.
public Client(Archive archive,
Application app)
throws GenBaseException
archive - the archive fileapp - the container Application
GenBaseException - When Init fails| Method Detail |
|---|
public void setApplication(Application app)
app - the container application.public Application getApplication()
public List getServiceRefDescs()
getServiceRefDescs in interface WsClientpublic void addClasses(File classes)
classes - directory with classes.public Map getDescriptors()
getDescriptors in class J2EEArchivepublic boolean omit(String name)
omit in class J2EEArchivename - filename to be tested
public Document getJonasClientDoc()
public InputStream getJonasClientInputStream()
throws IOException
IOException - When InputStream of jonas-client.xml cannot be
returned.
public void initialize()
throws GenBaseException
initialize in class J2EEArchiveGenBaseException - When initialization fails.public List getEjbRefDescs()
getEjbRefDescs in interface EjbRefModulepublic void close()
close in interface Archiveclose in class J2EEArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||