public class ViewExtractor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewExtractor.ExtractionException
General exception for view archive extraction.
|
| Constructor and Description |
|---|
ViewExtractor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ensureExtractedArchiveDirectory(String extractedArchivesPath)
Ensure that the extracted view archive directory exists.
|
ClassLoader |
extractViewArchive(ViewEntity view,
File viewArchive,
File archiveDir,
List<File> viewsAdditionalClasspath)
Extract the given view archive to the given archive directory.
|
public ClassLoader extractViewArchive(ViewEntity view, File viewArchive, File archiveDir, List<File> viewsAdditionalClasspath) throws ViewExtractor.ExtractionException
view - the view entityviewArchive - the view archive filearchiveDir - the view archive directoryviewsAdditionalClasspath: - list of additional paths to be added to every view's classpathViewExtractor.ExtractionException - if the archive can not be extractedpublic boolean ensureExtractedArchiveDirectory(String extractedArchivesPath)
extractedArchivesPath - the pathCopyright © 2022 Apache Software Foundation. All rights reserved.