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 ResourceMeta
createResourceMeta
(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) createResourceMeta
(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) abstract String
getLibraryVersion
(String path) Return the max available version found (if exists) or return null if no version available.abstract InputStream
getResourceInputStream
(ResourceMeta resourceMeta) abstract URL
getResourceURL
(ResourceMeta resourceMeta) Return the max available version found (if exists) or return null if no version available.abstract String
getResourceVersion
(String path) protected Comparator<String>
iterator
(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) abstract boolean
libraryExists
(String libraryName) boolean
resourceExists
(ResourceMeta resourceMeta) void
protected void
setVersionComparator
(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
-