|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployable.archive.EZBJarArchiveImpl
public class EZBJarArchiveImpl
Creates wrapper around jar file.
Field Summary | |
---|---|
private java.io.File |
file
Internal resource used as archive. |
private java.util.jar.JarFile |
jarFile
Internal resource used as archive. |
Constructor Summary | |
---|---|
protected |
EZBJarArchiveImpl(java.io.File file)
Creates new instance of an EZBArchive for a jar file. |
Method Summary | |
---|---|
boolean |
close()
Close the underlying Resource. |
boolean |
equals(java.lang.Object o)
Is that the given object is equals to our instance. |
java.lang.String |
getName()
|
java.net.URL |
getResource(java.lang.String resourceName)
|
java.util.Iterator<java.net.URL> |
getResources()
|
java.util.Iterator<java.net.URL> |
getResources(java.lang.String resourceName)
|
java.net.URL |
getURL()
|
int |
hashCode()
Gets hashcode for this object. |
private void |
init()
Init an archive and create the associated jar file object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.jar.JarFile jarFile
private java.io.File file
Constructor Detail |
---|
protected EZBJarArchiveImpl(java.io.File file)
file
- the given jar file.Method Detail |
---|
private void init() throws EZBArchiveException
EZBArchiveException
- if init failspublic java.lang.String getName()
getName
in interface EZBArchive
public boolean close()
close
in interface EZBArchive
true
if the close was succesful,
false
otherwise.public java.net.URL getResource(java.lang.String resourceName) throws EZBArchiveException
getResource
in interface EZBArchive
resourceName
- The resource name to be looked up.
EZBArchiveException
- if method fails.public java.util.Iterator<java.net.URL> getResources() throws EZBArchiveException
getResources
in interface EZBArchive
EZBArchiveException
- if method fails.public java.util.Iterator<java.net.URL> getResources(java.lang.String resourceName) throws EZBArchiveException
getResources
in interface EZBArchive
resourceName
- The resource name to be looked up.
EZBArchiveException
- if method fails.public java.net.URL getURL() throws EZBArchiveException
getURL
in interface EZBArchive
EZBArchiveException
- if method fails.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |