All Packages Class Hierarchy This Package Previous Next Index
Class w3c.jigsaw.cvs.AutoLookupDirectory
java.lang.Object
|
+----w3c.tools.store.AttributeHolder
|
+----w3c.tools.store.Resource
|
+----w3c.jigsaw.resources.HTTPResource
|
+----w3c.jigsaw.resources.FilteredResource
|
+----w3c.jigsaw.resources.ContainerResource
|
+----w3c.jigsaw.resources.StoreContainer
|
+----w3c.jigsaw.resources.DirectoryResource
|
+----w3c.jigsaw.resources.PutableDirectory
|
+----w3c.jigsaw.cvs.AutoLookupDirectory
- public class AutoLookupDirectory
- extends PutableDirectory
A special version of DirectoryResource that can fetch a file
from CVS directly if it is not already here.
It can alos do an automatic update, depending on a flag
-
AutoLookupDirectory()
-
-
getCvsManager()
- Get the appropriate CVS manager for the directory we handle.
-
isAutoUpdatable()
- tell if we must always do an update.
-
lookup(String)
- Lookup the resource having the given name in this directory.
AutoLookupDirectory
public AutoLookupDirectory()
getCvsManager
protected synchronized CvsDirectory getCvsManager() throws CvsException
- Get the appropriate CVS manager for the directory we handle.
- Returns:
- A CvsDirectory instance.
- Throws: HTTPException
- If we couldn't get the manager.
isAutoUpdatable
public boolean isAutoUpdatable()
- tell if we must always do an update.
lookup
public Resource lookup(String name) throws InvalidResourceException
- Lookup the resource having the given name in this directory.
if the resource is not present, it will try to fetch it from
the Cvs repository.
- Parameters:
- name - The name of the resource.
- Returns:
- A resource instance, or null.
- Overrides:
- lookup in class StoreContainer
All Packages Class Hierarchy This Package Previous Next Index