public class ClassLoaderResourceLoader extends ResourceLoader
ResourceLoader.VersionComparatorVERSION_INVALID| Constructor and Description |
|---|
ClassLoaderResourceLoader(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
ResourceMeta |
createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion) |
protected ClassLoader |
getClassLoader()
Returns the ClassLoader to use when looking up resources under the top level package.
|
String |
getLibraryVersion(String path)
Return the max available version found (if exists) or
return null if no version available.
|
InputStream |
getResourceInputStream(ResourceMeta resourceMeta) |
URL |
getResourceURL(ResourceMeta resourceMeta)
Return the max available version found (if exists) or
return null if no version available.
|
URL |
getResourceURL(String resourceId) |
String |
getResourceVersion(String path) |
Iterator<String> |
iterator(FacesContext facesContext,
String path,
int maxDepth,
ResourceVisitOption... options) |
boolean |
libraryExists(String libraryName) |
createResourceMeta, getPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparatorpublic ClassLoaderResourceLoader(String prefix)
public String getLibraryVersion(String path)
ResourceLoadergetLibraryVersion in class ResourceLoaderpublic InputStream getResourceInputStream(ResourceMeta resourceMeta)
getResourceInputStream in class ResourceLoaderpublic URL getResourceURL(ResourceMeta resourceMeta)
ResourceLoadergetResourceURL in class ResourceLoaderpublic String getResourceVersion(String path)
getResourceVersion in class ResourceLoaderpublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)
createResourceMeta in class ResourceLoaderprotected ClassLoader getClassLoader()
public boolean libraryExists(String libraryName)
libraryExists in class ResourceLoaderpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
iterator in class ResourceLoaderCopyright © 2021 The Apache Software Foundation. All rights reserved.