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 SummaryNested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
- 
Field SummaryFields inherited from class org.apache.myfaces.resource.ResourceLoaderVERSION_INVALID
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ResourceLoadercreateResourceMeta, getPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
- 
Constructor Details- 
ClassLoaderResourceLoader
 
- 
- 
Method Details- 
getLibraryVersionDescription copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ResourceLoader
 
- 
getResourceInputStream- Specified by:
- getResourceInputStreamin class- ResourceLoader
 
- 
getResourceURL
- 
getResourceURLDescription copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getResourceURLin class- ResourceLoader
 
- 
getResourceVersion- Specified by:
- getResourceVersionin class- ResourceLoader
 
- 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) - Specified by:
- createResourceMetain class- ResourceLoader
 
- 
getClassLoaderReturns 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 class- ResourceLoader
 
- 
iteratorpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
- iteratorin class- ResourceLoader
 
 
-