Package org.apache.myfaces.resource
Class ResourceLoader
java.lang.Object
org.apache.myfaces.resource.ResourceLoader
- Direct Known Subclasses:
ClassLoaderResourceLoader,ContractResourceLoader,ExternalContextResourceLoader,InternalClassLoaderResourceLoader,ResourceLoaderWrapper,RootExternalContextResourceLoader
Base class for resource loaders. Resource loaders can lookup resources
as URLs from arbitrary locations, including JAR files.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) createResourceMeta(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.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>iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) abstract booleanlibraryExists(String libraryName) booleanresourceExists(ResourceMeta resourceMeta) voidprotected voidsetVersionComparator(Comparator<String> versionComparator)
-
Field Details
-
VERSION_INVALID
- See Also:
-
-
Constructor Details
-
ResourceLoader
-
-
Method Details
-
getResourceVersion
-
getLibraryVersion
Return the max available version found (if exists) or return null if no version available. -
getResourceURL
Return the max available version found (if exists) or return null if no version available. -
getResourceInputStream
-
createResourceMeta
-
createResourceMeta
-
libraryExists
-
resourceExists
-
iterator
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) -
getVersionComparator
-
setVersionComparator
-
getPrefix
-
setPrefix
-