|
||||||||||
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
public abstract class J2EEArchive
Base Class for all J2EE modules (application, ejbjar, client, webapp).
Archive
Constructor Summary | |
---|---|
J2EEArchive(Archive archive)
Creates a new J2EEArchive object. |
Method Summary | |
---|---|
void |
addDirectory(File directory)
add the content of the given directory into the root of the archive. |
void |
addDirectoryIn(String dirName,
File directory)
add the content of the given directory into the given directory of the archive. |
void |
addFile(File file)
add a lonely file into the root directory of the archive. |
void |
addFile(File file,
String name)
add a file into the root directory of the archive with a specified name. |
void |
addFileIn(String dirName,
File file)
add a lonely file into the given directory of the archive. |
void |
close()
Close this archive |
Archive |
getArchive()
|
List |
getContainedFiles()
Returns a List of all files contained in this archive. |
abstract Map |
getDescriptors()
Returns a Map of name to Document for each modified Descriptor of the archive. |
static I18n |
getI18n()
|
InputStream |
getInputStream(String filename)
Returns an InputStream corresponding to the given filename. |
static org.objectweb.util.monolog.api.Logger |
getLogger()
|
Manifest |
getManifest()
Returns the Manifest of the Archive. |
ClassLoader |
getModuleClassloader()
|
String |
getName()
Returns the name of the Archive. |
File |
getRootFile()
Returns the File corresponding to the root of the archive. |
abstract void |
initialize()
Initialize the Archive. |
protected boolean |
isDTDsAllowed()
|
boolean |
isPacked()
Returns true if archive is packed or false if archive is unpacked. |
abstract boolean |
omit(String name)
Returns true if filename must be omitted in the archive. |
void |
setArchive(Archive archive)
|
void |
setModuleClassloader(ClassLoader moduleClassloader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public J2EEArchive(Archive archive)
archive
- Archive containing filesMethod Detail |
---|
public void addDirectory(File directory)
addDirectory
in interface Archive
directory
- directory to addpublic void addDirectoryIn(String dirName, File directory)
addDirectoryIn
in interface Archive
dirName
- archive directory name.directory
- directory to add.public void addFile(File file)
addFile
in interface Archive
file
- the file to be added.public void addFile(File file, String name)
addFile
in interface Archive
file
- the file to be added.name
- filenamepublic void addFileIn(String dirName, File file)
addFileIn
in interface Archive
dirName
- archive directory name.file
- the file to be added.public File getRootFile()
getRootFile
in interface Archive
public Manifest getManifest()
getManifest
in interface Archive
public InputStream getInputStream(String filename) throws IOException
getInputStream
in interface Archive
filename
- file name source of the InputStream
IOException
- When Cannot get InputStream from filenamepublic List getContainedFiles()
getContainedFiles
in interface Archive
public boolean isPacked()
isPacked
in interface Archive
public String getName()
getName
in interface Archive
public abstract Map getDescriptors()
public abstract boolean omit(String name)
name
- filename to be tested
public static I18n getI18n()
public static org.objectweb.util.monolog.api.Logger getLogger()
public Archive getArchive()
public void setArchive(Archive archive)
archive
- The archive to set.public abstract void initialize() throws GenBaseException
GenBaseException
- When initialization fails.public ClassLoader getModuleClassloader()
public void setModuleClassloader(ClassLoader moduleClassloader)
moduleClassloader
- The moduleClassloader to set.protected boolean isDTDsAllowed()
public void close()
close
in interface Archive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |