Package org.apache.myfaces.resource
Class ClassLoaderResourceLoader
java.lang.Object
org.apache.myfaces.resource.ResourceLoader
org.apache.myfaces.resource.ClassLoaderResourceLoader
- Direct Known Subclasses:
FacesFlowClassLoaderResourceLoader
A resource loader implementation which loads resources from the thread ClassLoader.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoader
ResourceLoader.VersionComparator -
Field Summary
Fields inherited from class org.apache.myfaces.resource.ResourceLoader
VERSION_INVALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) protected ClassLoaderReturns the ClassLoader to use when looking up resources under the top level package.getLibraryVersion(String path) Return the max available version found (if exists) or return null if no version available.getResourceInputStream(ResourceMeta resourceMeta) getResourceURL(String resourceId) getResourceURL(ResourceMeta resourceMeta) Return the max available version found (if exists) or return null if no version available.getResourceVersion(String path) iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) booleanlibraryExists(String libraryName) Methods inherited from class org.apache.myfaces.resource.ResourceLoader
createResourceMeta, getPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
-
Constructor Details
-
ClassLoaderResourceLoader
-
-
Method Details
-
getLibraryVersion
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getLibraryVersionin classResourceLoader
-
getResourceInputStream
- Specified by:
getResourceInputStreamin classResourceLoader
-
getResourceURL
-
getResourceURL
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getResourceURLin classResourceLoader
-
getResourceVersion
- Specified by:
getResourceVersionin classResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) - Specified by:
createResourceMetain classResourceLoader
-
getClassLoader
Returns the ClassLoader to use when looking up resources under the top level package. By default, this is the context class loader.- Returns:
- the ClassLoader used to lookup resources
-
libraryExists
- Specified by:
libraryExistsin classResourceLoader
-
iterator
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
iteratorin classResourceLoader
-