net.larsan.urd.archive
Class JarArchive

java.lang.Object
  |
  +--net.larsan.urd.util.fileset.FileSet
        |
        +--net.larsan.urd.util.fileset.TrivialFileSet
              |
              +--net.larsan.urd.util.fileset.JarFile
                    |
                    +--net.larsan.urd.archive.JarArchive
All Implemented Interfaces:
ResourceLocator, WatchableFileSet

public class JarArchive
extends JarFile

A JAR archive is a trivial resource from which a class loader can load a service. It also contains the exportation logic for the service.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
ServiceArchive

Field Summary
 
Fields inherited from class net.larsan.urd.util.fileset.TrivialFileSet
file, resources
 
Fields inherited from class net.larsan.urd.util.fileset.FileSet
root
 
Constructor Summary
JarArchive(ServiceArchive archive)
          Create archive
 
Method Summary
 void export(Exporter exp)
          Export resources from the JAR archive to the exporter object.
 ServiceArchive getArchive()
          Get the archive behind this JAR resource.
 
Methods inherited from class net.larsan.urd.util.fileset.JarFile
doScan
 
Methods inherited from class net.larsan.urd.util.fileset.TrivialFileSet
addFileSetListener, checkScan, getCertificates, getResource, getResourcePaths, removeFileSetListener, scan, start, stop
 
Methods inherited from class net.larsan.urd.util.fileset.FileSet
getErrorHandler, isRecursive, matches, resolvePath, setErrorHandler, setIsRecursive, setRegexpPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.larsan.urd.util.fileset.WatchableFileSet
addFileSetListener, removeFileSetListener
 

Constructor Detail

JarArchive

public JarArchive(ServiceArchive archive)
           throws java.io.IOException
Create archive

Parameters:
archive - Archive to read jar from.
Throws:
java.io.IOException - On IO errors
Method Detail

export

public void export(Exporter exp)
Export resources from the JAR archive to the exporter object.

Parameters:
exp - Exporter to export resources to

getArchive

public ServiceArchive getArchive()
Get the archive behind this JAR resource.

Returns:
The backing arhcive object, never null