Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.dghda.module
Class ModulePathJarComponent  view ModulePathJarComponent download ModulePathJarComponent.java

java.lang.Object
  extended bycom.dghda.module.ModulePathJarComponent
All Implemented Interfaces:
ModulePathComponent

public class ModulePathJarComponent
extends java.lang.Object
implements ModulePathComponent

A module path jar component provides access to module providers in a jar file.


Nested Class Summary
protected  class ModulePathJarComponent.JarEntryProvider
          An implementation of a provider based on a jar file entry.
protected  class ModulePathJarComponent.JarIterator
          An iterator over the contents of the jar file.
 
Nested classes inherited from class com.dghda.module.ModulePathComponent
ModulePathComponent.EmptyIterator, ModulePathComponent.Provider
 
Field Summary
private  java.io.File m_File
           
private  java.util.jar.JarFile m_JarFile
           
private  long m_Scanned
           
 
Constructor Summary
ModulePathJarComponent(java.lang.String jarFile)
          Create a new path component representing the specified jar file.
 
Method Summary
 java.lang.String getPath()
          Returns the path to the jar file.
 java.util.Iterator getProviders(boolean updated)
          Iterate over all providers in the jar file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_File

private java.io.File m_File

m_JarFile

private java.util.jar.JarFile m_JarFile

m_Scanned

private long m_Scanned
Constructor Detail

ModulePathJarComponent

public ModulePathJarComponent(java.lang.String jarFile)
                       throws InvalidPathException
Create a new path component representing the specified jar file.

Method Detail

getProviders

public java.util.Iterator getProviders(boolean updated)
Iterate over all providers in the jar file.

Specified by:
getProviders in interface ModulePathComponent

getPath

public java.lang.String getPath()
Returns the path to the jar file.

Specified by:
getPath in interface ModulePathComponent