Package org.apache.myfaces.resource
Class ResourceLoader
- java.lang.Object
- 
- org.apache.myfaces.resource.ResourceLoader
 
- 
- Direct Known Subclasses:
- ClassLoaderResourceLoader,- ContractResourceLoader,- ExternalContextResourceLoader,- InternalClassLoaderResourceLoader,- ResourceLoaderWrapper,- RootExternalContextResourceLoader
 
 public abstract class ResourceLoader extends Object Base class for resource loaders. Resource loaders can lookup resources as URLs from arbitrary locations, including JAR files.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classResourceLoader.VersionComparator
 - 
Field SummaryFields Modifier and Type Field Description static StringVERSION_INVALID
 - 
Constructor SummaryConstructors Constructor Description ResourceLoader(String prefix)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)abstract StringgetLibraryVersion(String path)Return the max available version found (if exists) or return null if no version available.StringgetPrefix()abstract InputStreamgetResourceInputStream(ResourceMeta resourceMeta)abstract URLgetResourceURL(ResourceMeta resourceMeta)Return the max available version found (if exists) or return null if no version available.abstract StringgetResourceVersion(String path)protected Comparator<String>getVersionComparator()Iterator<String>iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)abstract booleanlibraryExists(String libraryName)booleanresourceExists(ResourceMeta resourceMeta)voidsetPrefix(String prefix)protected voidsetVersionComparator(Comparator<String> versionComparator)
 
- 
- 
- 
Field Detail- 
VERSION_INVALIDpublic static final String VERSION_INVALID - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ResourceLoaderpublic ResourceLoader(String prefix) 
 
- 
 - 
Method Detail- 
getLibraryVersionpublic abstract String getLibraryVersion(String path) Return the max available version found (if exists) or return null if no version available.
 - 
getResourceURLpublic abstract URL getResourceURL(ResourceMeta resourceMeta) Return the max available version found (if exists) or return null if no version available.
 - 
getResourceInputStreampublic abstract InputStream getResourceInputStream(ResourceMeta resourceMeta) 
 - 
createResourceMetapublic abstract ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) 
 - 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) 
 - 
libraryExistspublic abstract boolean libraryExists(String libraryName) 
 - 
resourceExistspublic boolean resourceExists(ResourceMeta resourceMeta) 
 - 
iteratorpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) 
 - 
getVersionComparatorprotected Comparator<String> getVersionComparator() 
 - 
setVersionComparatorprotected void setVersionComparator(Comparator<String> versionComparator) 
 - 
getPrefixpublic String getPrefix() 
 - 
setPrefixpublic void setPrefix(String prefix) 
 
- 
 
-