public class DependencyResolver extends Object implements HtmlImportShim.ResourceLocator
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseDir |
protected File[] |
resourcePath |
| Constructor and Description |
|---|
DependencyResolver(String baseDir,
String[] resourcePath,
HtmlImportShim.ResourceLocator rl) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseDir() |
File |
locateResource(String name)
iterate component directories in order and return full path of first file matching
|
String |
resolveUniquePath(File fi) |
byte[] |
retrieveBytes(File impFi)
this part of locator interface is only implemented if another
resourcelocator is set.
|
protected DependencyResolver |
setBaseDir(String baseDir) |
protected DependencyResolver |
setResourcePath(String... path) |
public DependencyResolver(String baseDir, String[] resourcePath, HtmlImportShim.ResourceLocator rl)
public String getBaseDir()
protected DependencyResolver setBaseDir(String baseDir)
protected DependencyResolver setResourcePath(String... path)
public File locateResource(String name)
locateResource in interface HtmlImportShim.ResourceLocatorname - public byte[] retrieveBytes(File impFi)
retrieveBytes in interface HtmlImportShim.ResourceLocatorimpFi - Copyright © 2020. All rights reserved.