Package org.apache.myfaces.resource
Class ResourceLoaderWrapper
java.lang.Object
org.apache.myfaces.resource.ResourceLoader
org.apache.myfaces.resource.ResourceLoaderWrapper
- All Implemented Interfaces:
FacesWrapper<ResourceLoader>
- Direct Known Subclasses:
FacesJSResourceLoader,TempDirFileCacheResourceLoader
public abstract class ResourceLoaderWrapper
extends ResourceLoader
implements FacesWrapper<ResourceLoader>
-
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) getLibraryVersion(String path) Return the max available version found (if exists) or return null if no version available.getResourceInputStream(ResourceMeta resourceMeta) getResourceURL(ResourceMeta resourceMeta) Return the max available version found (if exists) or return null if no version available.getResourceVersion(String path) protected Comparator<String>iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) booleanlibraryExists(String libraryName) booleanresourceExists(ResourceMeta resourceMeta) voidprotected voidsetVersionComparator(Comparator<String> versionComparator) Methods inherited from class org.apache.myfaces.resource.ResourceLoader
createResourceMetaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.faces.FacesWrapper
getWrapped
-
Constructor Details
-
ResourceLoaderWrapper
public ResourceLoaderWrapper()
-
-
Method Details
-
getResourceVersion
- Specified by:
getResourceVersionin classResourceLoader
-
getLibraryVersion
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getLibraryVersionin classResourceLoader
-
getResourceURL
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getResourceURLin classResourceLoader
-
getResourceInputStream
- Specified by:
getResourceInputStreamin classResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) - Specified by:
createResourceMetain classResourceLoader
-
libraryExists
- Specified by:
libraryExistsin classResourceLoader
-
getPrefix
- Overrides:
getPrefixin classResourceLoader
-
setPrefix
- Overrides:
setPrefixin classResourceLoader
-
resourceExists
- Overrides:
resourceExistsin classResourceLoader
-
getVersionComparator
- Overrides:
getVersionComparatorin classResourceLoader
-
setVersionComparator
- Overrides:
setVersionComparatorin classResourceLoader
-
iterator
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
iteratorin classResourceLoader
-