Package helma.framework.repository
Class MultiFileRepository
java.lang.Object
helma.framework.repository.AbstractRepository
helma.framework.repository.FileRepository
helma.framework.repository.MultiFileRepository
- All Implemented Interfaces:
Repository
Repository implementation that provides all of its subdirectories
as top-level FileRepositories
-
Field Summary
Fields inherited from class helma.framework.repository.FileRepository
directory, lastChecksum, lastChecksumTime, lastModified
-
Constructor Summary
ConstructorsConstructorDescriptionMultiFileRepository
(File dir) Constructs a MultiFileRepository using the given directory as top-level repositoryMultiFileRepository
(String initArgs) Constructs a MultiFileRepository using the given argument -
Method Summary
Methods inherited from class helma.framework.repository.FileRepository
create, createResource, exists, getChecksum, getDirectory, isScriptRoot, lastModified
Methods inherited from class helma.framework.repository.AbstractRepository
getAllResources, getName, getParentRepository, getRepositories, getResource, getResources, getRootRepository, getShortName
-
Constructor Details
-
MultiFileRepository
Constructs a MultiFileRepository using the given argument- Parameters:
initArgs
- absolute path to the directory
-
MultiFileRepository
Constructs a MultiFileRepository using the given directory as top-level repository- Parameters:
dir
- directory
-
-
Method Details
-
update
public void update()Updates the content cache of the repository. We override this to create child repositories that act as top-level script repositories rather than prototype repositories. Zip files are handled as top-level script repositories like in FileRepository, while resources are ignored.- Overrides:
update
in classFileRepository
-
hashCode
public int hashCode()get hashcode- Overrides:
hashCode
in classFileRepository
- Returns:
- int
-
equals
equals object- Overrides:
equals
in classFileRepository
- Parameters:
obj
- Object- Returns:
- boolean
-
toString
get object serialized as string- Overrides:
toString
in classFileRepository
- Returns:
- String
-